summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/edgeswitch.rb
diff options
context:
space:
mode:
authorJacob Thomas <jacob@doogie.consulting>2016-02-02 21:55:57 -0500
committerJacob Thomas <jacob@doogie.consulting>2016-02-02 21:55:57 -0500
commit0feaadd681509ddae8de76d82108f3aa6236e1e6 (patch)
tree4424abfa668e9ad95553a1e2b50dc6653b9b7e3d /lib/oxidized/model/edgeswitch.rb
parente3d1a614e7a1d4ee5cf6983cc2bddcb0c64bb975 (diff)
Add EdgeSwitch Line Reject
Addition of line reject to remove SNTP sync and uptime codes that change consistently into EdgeSwitch model file
Diffstat (limited to 'lib/oxidized/model/edgeswitch.rb')
-rw-r--r--lib/oxidized/model/edgeswitch.rb4
1 files changed, 2 insertions, 2 deletions
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