diff options
author | Martin Pels <martin@rodecker.nl> | 2015-04-08 09:43:15 +0200 |
---|---|---|
committer | Martin Pels <martin@rodecker.nl> | 2015-04-08 09:43:15 +0200 |
commit | 40974351583e5d6f867389f5d0c08691eaece27a (patch) | |
tree | 3cdfbd916c94dda82ccef128e681337a338ca6db | |
parent | 20eed2e40303a80b3d4cd444fb358041bb9c2b60 (diff) |
hide enable secret when remove_secret is enabled
-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 98a8c28..58bb5a9 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 |