From 81619a27e0e63d8070d053ad7b476b85a6fb5b41 Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 10 Feb 2017 16:22:13 -0500 Subject: nxos.rb: Add secret block Took config from our local setup. Adding since it does not have it --- lib/oxidized/model/nxos.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/oxidized') diff --git a/lib/oxidized/model/nxos.rb b/lib/oxidized/model/nxos.rb index fbe772d..e743415 100644 --- a/lib/oxidized/model/nxos.rb +++ b/lib/oxidized/model/nxos.rb @@ -3,6 +3,14 @@ class NXOS < Oxidized::Model prompt /^(\r?[\w.@_()-]+[#]\s?)$/ comment '! ' + cmd :secret do |cfg| + cfg.gsub! /^(snmp-server community).*/, '\\1 ' + cfg.gsub! /^(snmp-server user (\S+) (\S+) auth (\S+)) (\S+) (priv) (\S+)/, '\\1 ' + cfg.gsub! /^(username \S+ password \d) (\S+)/, '\\1