lib/oxidized/model/dlink.rb in oxidized-0.20.0 vs lib/oxidized/model/dlink.rb in oxidized-0.21.0
- old
+ new
@@ -13,9 +13,10 @@
cmd :all do |cfg|
cfg.each_line.to_a[2..-2].map{|line|line.delete("\r").rstrip}.join("\n") + "\n"
end
cmd 'show switch' do |cfg|
+ cfg.gsub! /^System\ Uptime\s.+/, '' # Omit constantly changing uptime info
comment cfg
end
cmd 'show vlan' do |cfg|
comment cfg