summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/edgeswitch.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-03 11:42:47 +0200
committerytti <saku@ytti.fi>2016-02-03 11:42:47 +0200
commit724a3de7d0e965e7d8b95586814e07f2e6381ebe (patch)
tree4424abfa668e9ad95553a1e2b50dc6653b9b7e3d /lib/oxidized/model/edgeswitch.rb
parent52eaba0e15c7808949c0821a318376c17b281a12 (diff)
parent0feaadd681509ddae8de76d82108f3aa6236e1e6 (diff)
Merge pull request #303 from doogieconsulting/master
Removal of SNTP and Uptime comments
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