summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Murray <murraytony@gmail.com>2016-02-25 09:53:23 -0600
committerTony Murray <murraytony@gmail.com>2016-02-25 09:53:23 -0600
commit2c5ebada26b0a16cb9826bee4a2d7c896755dde8 (patch)
tree4f68f886dfce3ddae9cea75de775d37ffc519d62
parentf70539c1a907fc4e416c8b60b359dc618690a80a (diff)
Remove commands from the config
-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