From 0feaadd681509ddae8de76d82108f3aa6236e1e6 Mon Sep 17 00:00:00 2001 From: Jacob Thomas Date: Tue, 2 Feb 2016 21:55:57 -0500 Subject: Add EdgeSwitch Line Reject Addition of line reject to remove SNTP sync and uptime codes that change consistently into EdgeSwitch model file --- lib/oxidized/model/edgeswitch.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/oxidized/model/edgeswitch.rb') diff --git a/lib/oxidized/model/edgeswitch.rb b/lib/oxidized/model/edgeswitch.rb index c303fe2..89a5690 100644 --- a/lib/oxidized/model/edgeswitch.rb +++ b/lib/oxidized/model/edgeswitch.rb @@ -7,7 +7,7 @@ class EdgeSwitch < Oxidized::Model prompt /[(]\w*\s\w*[)][\s#>]*[\s#>]/ cmd 'show running-config' do |cfg| - comment cfg + comment cfg.each_line.reject { |line| line.match /System Up Time.*/ or line.match /Current SNTP Synchronized Time.*/ }.join end cfg :telnet do @@ -22,4 +22,4 @@ class EdgeSwitch < Oxidized::Model pre_logout 'exit' end -end +end \ No newline at end of file -- cgit v1.2.1