summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUltra2D <Ultra2D@users.noreply.github.com>2016-03-09 14:27:50 +0100
committerUltra2D <Ultra2D@users.noreply.github.com>2016-03-09 14:27:50 +0100
commit51476cf2a8dd8738ebe631015c8c52ee4aea0d39 (patch)
tree204c935669016c971a3b41d95c48ccf46ef1252b
parente8470e4376bda36c2550ffa72e86f87d84c9db3f (diff)
Procurve remove secret
-rw-r--r--lib/oxidized/model/procurve.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb
index 9095d4a..e667f48 100644
--- a/lib/oxidized/model/procurve.rb
+++ b/lib/oxidized/model/procurve.rb
@@ -21,6 +21,13 @@ class Procurve < Oxidized::Model
cfg = cfg.gsub /^\r/, ''
end
+ cmd :secret do |cfg|
+ cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>'
+ cfg.gsub! /^(snmp-server host).*/, '\\1 <configuration removed>'
+ cfg.gsub! /^(radius-server host).*/, '\\1 <configuration removed>'
+ cfg
+ end
+
cmd 'show version' do |cfg|
comment cfg
end