diff options
author | ytti <saku@ytti.fi> | 2017-01-10 23:59:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 23:59:44 +0200 |
commit | c5e25141e642b5c0156fb5dbcc5139461e3b112a (patch) | |
tree | 4bf17305908f5a0b93b4b908d519095841e7a993 /lib/oxidized | |
parent | f5d5a6e4dfaccc1262351fcbba7d88c4be7c0687 (diff) | |
parent | 7f84a8c67438e433e3359de03d7ef82fd025799c (diff) |
Merge pull request #662 from devicenull/patch-2
Mask out configuration date for fiberdriver
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/fiberdriver.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/model/fiberdriver.rb b/lib/oxidized/model/fiberdriver.rb index 8f8eb07..abe8f68 100644 --- a/lib/oxidized/model/fiberdriver.rb +++ b/lib/oxidized/model/fiberdriver.rb @@ -11,6 +11,10 @@ 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 .*$/, '' + cfg end cfg :ssh do |