lib/oxidized/model/aosw.rb in oxidized-0.28.0 vs lib/oxidized/model/aosw.rb in oxidized-0.29.0
- old
+ new
@@ -37,10 +37,10 @@
cfg.gsub!(/virtual-controller-key (\S+)$/, 'virtual-controller-key <secret removed>')
cfg
end
cmd 'show version' do |cfg|
- cfg = cfg.each_line.reject { |line| line.match /(Switch|AP) uptime/i }
+ cfg = cfg.each_line.reject { |line| line.match(/(Switch|AP) uptime/i) || line.match(/Reboot Time and Cause/i) }
rstrip_cfg comment cfg.join
end
cmd 'show inventory' do |cfg|
cfg = "" if cfg =~ /(Invalid input detected at '\^' marker|Parse error)/ # Don't show for unsupported devices (IAP and MAS)