summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Pels <martin@rodecker.nl>2015-04-08 09:43:15 +0200
committerMartin Pels <martin@rodecker.nl>2015-04-08 09:43:15 +0200
commit40974351583e5d6f867389f5d0c08691eaece27a (patch)
tree3cdfbd916c94dda82ccef128e681337a338ca6db /lib
parent20eed2e40303a80b3d4cd444fb358041bb9c2b60 (diff)
hide enable secret when remove_secret is enabled
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/eos.rb1
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