summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ios.rb
diff options
context:
space:
mode:
authorWild Kat <wk@futureinquestion.net>2018-03-17 11:30:47 +0100
committerWild Kat <wk@futureinquestion.net>2018-03-17 11:30:47 +0100
commitf17736cabf0edda6788eff206aa12c9e35a22341 (patch)
tree113fa19d95571137018e5465e07f499cfa551bd1 /lib/oxidized/model/ios.rb
parent81fc3a4b423d8ce9fe69def57007312a96db6f67 (diff)
parent7ecd5abe1cc2f2bbc6b29687352564cb7f087a5a (diff)
refactor supermicro support
Diffstat (limited to 'lib/oxidized/model/ios.rb')
-rw-r--r--lib/oxidized/model/ios.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb
index 0cb2f3a..4e7d223 100644
--- a/lib/oxidized/model/ios.rb
+++ b/lib/oxidized/model/ios.rb
@@ -26,6 +26,7 @@ class IOS < Oxidized::Model
cmd :secret do |cfg|
cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>'
+ cfg.gsub! /^(snmp-server host \S+( vrf \S+)?( version (1|2c|3))?)\s+\S+((\s+\S*)*)\s*/, '\\1 <secret hidden> \\5'
cfg.gsub! /^(username \S+ privilege \d+) (\S+).*/, '\\1 <secret hidden>'
cfg.gsub! /^(username \S+ password \d) (\S+)/, '\\1 <secret hidden>'
cfg.gsub! /^(username \S+ secret \d) (\S+)/, '\\1 <secret hidden>'