From 3fec19ba5b6b9cc2aabb7d57d2c0e2fb2a984cef Mon Sep 17 00:00:00 2001 From: Bruno Brito Carvalho Date: Sun, 10 Dec 2017 21:54:32 +0100 Subject: mode: Hide snmp community for IOS (#1077) * Hide snmp community Community is displayed next to this line (old ios versions) * Updating as suggested Thanks @ZacharyPuls * Was missing a / * Was missing the last / I missed that one yesterday. Sorry, making those changes from browser, many useless commits. --- lib/oxidized/model/ios.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index 0cb2f3a..4e7d223 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -26,6 +26,7 @@ class IOS < Oxidized::Model cmd :secret do |cfg| cfg.gsub! /^(snmp-server community).*/, '\\1 ' + cfg.gsub! /^(snmp-server host \S+( vrf \S+)?( version (1|2c|3))?)\s+\S+((\s+\S*)*)\s*/, '\\1