summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/eos.rb
diff options
context:
space:
mode:
authorAdam Smith <zero1three@gmail.com>2018-09-17 13:23:59 -0700
committerWild Kat <wk@users.noreply.github.com>2018-09-17 22:23:59 +0200
commit51dc441aa4e3f753665a8ecb053687747f9122c2 (patch)
tree2fce8fb4e1e27d84bce72ed5557bea7505e6f33a /lib/oxidized/model/eos.rb
parent24ddf393801bafea120d3d442dda7a331246c5b4 (diff)
filter out BGP passwords and only user password hashes from eos (#1525)
Diffstat (limited to 'lib/oxidized/model/eos.rb')
-rw-r--r--lib/oxidized/model/eos.rb3
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