From 2c5ebada26b0a16cb9826bee4a2d7c896755dde8 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Thu, 25 Feb 2016 09:53:23 -0600 Subject: Remove commands from the config --- lib/oxidized/model/edgeswitch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model') 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 -- cgit v1.2.1