diff options
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/eos.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/model/eos.rb b/lib/oxidized/model/eos.rb index 6bfef87..6612116 100644 --- a/lib/oxidized/model/eos.rb +++ b/lib/oxidized/model/eos.rb @@ -11,7 +11,8 @@ class EOS < 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! /(secret \w+) (\S+).*/, '\\1 <secret hidden>' + cfg.gsub! /(password \d+) (\S+).*/, '\\1 <secret hidden>' cfg.gsub! /^(enable secret).*/, '\\1 <configuration removed>' cfg.gsub! /^(tacacs-server key \d+).*/, '\\1 <configuration removed>' cfg |