diff options
author | nopedial <sam@arahant.net> | 2016-02-07 22:42:56 +0000 |
---|---|---|
committer | nopedial <sam@arahant.net> | 2016-02-07 22:42:56 +0000 |
commit | 5fec3832793cf89a0969ad6c60a1ecf478131f66 (patch) | |
tree | bf332d066fe26102cc352e56d61aa3d1989f50e7 /lib/oxidized | |
parent | eb1635fe777005334dd471730f5a7eb441588eb3 (diff) |
additional secrets for IOS
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/ios.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index f31303c..1f099c8 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -25,6 +25,10 @@ class IOS < Oxidized::Model cmd :secret do |cfg| cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>' cfg.gsub! /username (\S+) privilege (\d+) (\S+).*/, '<secret hidden>' + cfg.gsub! /^username \S+ password \d \S+/, '<secret hidden>' + cfg.gsub! /^enable password \d \S+/, '<secret hidden>' + cfg.gsub! /wpa-psk ascii \d \S+/, '<secret hidden>' + cfg.gsub! /^tacacs-server key \d \S+/, '<secret hidden>' cfg end |