diff options
author | ytti <saku@ytti.fi> | 2015-04-08 11:08:44 +0300 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2015-04-08 11:08:44 +0300 |
commit | 401e857c11332bfcc34f4304c85e7ddde4b8cd31 (patch) | |
tree | 7cc22da6f718d7581307de44601fa637a68aa775 /lib/oxidized/model/eos.rb | |
parent | 86516432c330801825a9204a7b0bf640e91d7f1f (diff) | |
parent | 40974351583e5d6f867389f5d0c08691eaece27a (diff) |
Merge pull request #100 from rodecker/master
hide enable secret when remove_secret is enabled
Diffstat (limited to 'lib/oxidized/model/eos.rb')
-rw-r--r-- | lib/oxidized/model/eos.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/eos.rb b/lib/oxidized/model/eos.rb index c1bc23a..84ef8cb 100644 --- a/lib/oxidized/model/eos.rb +++ b/lib/oxidized/model/eos.rb @@ -13,6 +13,7 @@ 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! /^(enable secret).*/, '\\1 <configuration removed>' cfg end |