diff options
author | ytti <saku@ytti.fi> | 2016-12-27 18:41:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-27 18:41:20 +0200 |
commit | 0c40612f8880eb8921c26c9862fe20521d0843e3 (patch) | |
tree | c88ba21e0cfa6664d03bf80e70d090b333fc0636 | |
parent | a533d4e3d1a4cafb167f46931fb9cc73daedd2f3 (diff) | |
parent | 78dd28e7c4e284fe131c063114e2ee2687885521 (diff) |
Merge pull request #653 from gaetronik/ios_set_branch_hide_all_password
Hide remaining passwords
-rw-r--r-- | lib/oxidized/model/ios.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index 040548a..c8b0ef3 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -27,8 +27,8 @@ class IOS < Oxidized::Model cfg.gsub! /username (\S+) privilege (\d+) (\S+).*/, '<secret hidden>' cfg.gsub! /^username \S+ password \d \S+/, '<secret hidden>' cfg.gsub! /^username \S+ secret \d \S+/, '<secret hidden>' - cfg.gsub! /^enable password \d \S+/, '<secret hidden>' - cfg.gsub! /^enable secret \d \S+/, '<secret hidden>' + cfg.gsub! /^enable (password|secret) \d \S+/, '<secret hidden>' + cfg.gsub! /^(\s+(?:password|secret)) (?:\d )?\S+/, '\\1 <secret hidden>' cfg.gsub! /wpa-psk ascii \d \S+/, '<secret hidden>' cfg.gsub! /^tacacs-server key \d \S+/, '<secret hidden>' cfg |