summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-25 21:12:16 +0200
committerytti <saku@ytti.fi>2016-02-25 21:12:16 +0200
commit94f3a8e9a56763939b95fdf92b7e948f4fcbaa64 (patch)
tree4f68f886dfce3ddae9cea75de775d37ffc519d62 /lib/oxidized/model
parent855df89bf1b485fb09a696f2186eee8a592178ce (diff)
parent2c5ebada26b0a16cb9826bee4a2d7c896755dde8 (diff)
Merge pull request #345 from murrant/patch-2
Edgeswitch remove commands from the config
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/edgeswitch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/edgeswitch.rb b/lib/oxidized/model/edgeswitch.rb
index 607df6c..cb921b8 100644
--- a/lib/oxidized/model/edgeswitch.rb
+++ b/lib/oxidized/model/edgeswitch.rb
@@ -7,7 +7,7 @@ class EdgeSwitch < Oxidized::Model
prompt /\(.*\)\s[#>]/
cmd 'show running-config' do |cfg|
- cfg.each_line.reject { |line| line.match /System Up Time.*/ or line.match /Current SNTP Synchronized Time.*/ }.join
+ cfg.each_line.to_a[2..-2].reject { |line| line.match /System Up Time.*/ or line.match /Current SNTP Synchronized Time.*/ }.join
end
cfg :telnet do