diff options
author | Arnoud Vermeer <a.vermeer@tech.leaseweb.com> | 2016-08-22 15:22:30 +0200 |
---|---|---|
committer | Arnoud Vermeer <a.vermeer@tech.leaseweb.com> | 2016-08-22 15:22:30 +0200 |
commit | ed7c5574a197605658dfc5c8d5563d55e483eef3 (patch) | |
tree | ea51ee24a2c9cc493663b79125c5a260b421f253 | |
parent | 8ef086796a22914dcc52febb4dfc84df56e05438 (diff) |
Remove secrets from A10 config and 'show running-config' doesn't have 'all-partitions' in 64-bit Advanced Core OS (ACOS) version 4.1.0-P4, build 12 (Jul-22-2016,15:49)
-rw-r--r-- | lib/oxidized/model/acos.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/oxidized/model/acos.rb b/lib/oxidized/model/acos.rb index bb9846e..f4d4464 100644 --- a/lib/oxidized/model/acos.rb +++ b/lib/oxidized/model/acos.rb @@ -6,6 +6,13 @@ class ACOS < Oxidized::Model ##ACOS prompt changes depending on the state of the device prompt /^([-\w.\/:?\[\]\(\)]+[#>]\s?)$/ + cmd :secret do |cfg| + cfg.gsub!(/community read encrypted (\S+)/, 'community read encrypted <hidden>') # snmp + cfg.gsub!(/secret encrypted (\S+)/, 'secret encrypted <hidden>') # tacacs-server + cfg.gsub!(/password encrypted (\S+)/, 'password encrypted <hidden>') # user + cfg + end + cmd 'show version' do |cfg| cfg.gsub! /\s(Last configuration saved at).*/, ' \\1 <removed>' cfg.gsub! /\s(Memory).*/, ' \\1 <removed>' @@ -22,7 +29,7 @@ class ACOS < Oxidized::Model comment cfg end - cmd 'show running-config all-partitions' do |cfg| + cmd 'show running-config' do |cfg| cfg.gsub! /(Current configuration).*/, '\\1 <removed>' cfg.gsub! /(Configuration last updated at).*/, '\\1 <removed>' cfg.gsub! /(Configuration last saved at).*/, '\\1 <removed>' |