summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordevicenull <devicenull@users.noreply.github.com>2017-01-10 15:58:41 -0500
committerGitHub <noreply@github.com>2017-01-10 15:58:41 -0500
commit10ef623e5cf57de70f31063e9efde23e6d00ef75 (patch)
treeefe36404c98e1035588fe9a34a3bc9f82274a8c0 /lib
parentf5d5a6e4dfaccc1262351fcbba7d88c4be7c0687 (diff)
Mask out configuration date for fiberdriver
Our fiberdriver devices report a timestamp during 'show running-config', which results in a config diff on every run. This patch removes the '+! Configuration saved on 2017/01/10 14:21:20' line from the config, as well as a couple other useless status messages
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/fiberdriver.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/oxidized/model/fiberdriver.rb b/lib/oxidized/model/fiberdriver.rb
index 8f8eb07..c8a7f6a 100644
--- a/lib/oxidized/model/fiberdriver.rb
+++ b/lib/oxidized/model/fiberdriver.rb
@@ -11,6 +11,9 @@ class FiberDriver < Oxidized::Model
cmd "show running-config" do |cfg|
cfg.each_line.to_a[3..-1].join
+ cfg.gsub! /^Building configuration.*$/, ''
+ cfg.gsub! /^Current configuration:.*$$/, ''
+ cfg.gsub! /^! Configuration saved on .*$/, ''
end
cfg :ssh do