lib/oxidized/model/casa.rb in oxidized-0.28.0 vs lib/oxidized/model/casa.rb in oxidized-0.29.0

- old
+ new

@@ -8,18 +8,21 @@ cfg.gsub! /^(snmp community) \S+/, '\\1 <configuration removed>' cfg.gsub! /^(snmp comm-tbl) \S+ \S+/, '\\1 <removed> <removed>' cfg.gsub! /^(console-password encrypted) \S+/, '\\1 <secret hidden>' cfg.gsub! /^(password encrypted) \S+/, '\\1 <secret hidden>' cfg.gsub! /^(tacacs-server key) \S+/, '\\1 <secret hidden>' + cfg.gsub! /^( ip rip authentication secret) \S+/, '\\1 <secret hidden>' cfg end cmd :all do |cfg| cfg.cut_both end cmd 'show system' do |cfg| - comment cfg.each_line.reject { |line| line.match /^\s+System (Time|Uptime): / }.join + cfg.gsub! /Uptime:.*/, 'Uptime: <removed>' + cfg.gsub! /Time:.*/, 'Time: <removed>' + comment cfg end cmd 'show version' do |cfg| comment cfg end