diff options
author | KodApa85 <parsons151185@gmail.com> | 2018-04-13 20:30:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-13 20:30:43 +0100 |
commit | dbbe6af563072b62e373a9824c6a23482d20896e (patch) | |
tree | ab5341e8b1cd37aa0abf54662714f272cd8f9633 /lib/oxidized/model/junos.rb | |
parent | 97aa0535a0c8c237c1ccb7a1683d5f6faa1f0339 (diff) | |
parent | 56ec279b2e9e2735ed88405fd177e77f9e376801 (diff) |
Merge branch 'master' into xgs4600-cli
Diffstat (limited to 'lib/oxidized/model/junos.rb')
-rw-r--r-- | lib/oxidized/model/junos.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb index 2f59414..2ea0179 100644 --- a/lib/oxidized/model/junos.rb +++ b/lib/oxidized/model/junos.rb @@ -13,7 +13,10 @@ class JunOS < Oxidized::Model end cmd :secret do |cfg| - cfg.gsub!(/encrypted-password (\S+).*/, '<secret removed>') + cfg.gsub!(/encrypted-password (\S+).*/, 'encrypted-password <secret removed>') + cfg.gsub!(/pre-shared-key ascii-text (\S+).*/, 'pre-shared-key ascii-text <secret removed>') + cfg.gsub!(/pre-shared-key hexadecimal (\S+).*/, 'pre-shared-key hexadecimal <secret removed>') + cfg.gsub!(/authentication-key (\S+).*/, 'authentication-key <secret removed>') cfg.gsub!(/community (\S+) {/, 'community <hidden> {') cfg end |