lib/oxidized/model/voss.rb in oxidized-0.21.0 vs lib/oxidized/model/voss.rb in oxidized-0.22.0

- old
+ new

@@ -8,11 +8,11 @@ prompt /^[^\s#>]+[#>]$/ # needed for proper formatting after post_login cmd('') { |cfg| comment "#{cfg}\n" } - + # Get sys-info and remove information that changes such has temperature and power cmd 'show sys-info' do |cfg| cfg.gsub! /(^((.*)SysUpTime(.*))$)/, 'removed SysUpTime' cfg.gsub! /^((.*)Temperature Info \:(.*\r?\n){4})/, 'removed Temperature Info and 3 more lines' cfg.gsub! /(^((.*)AmbientTemperature(.*)\:(.*))$)/, 'removed AmbientTemperature' @@ -36,7 +36,6 @@ cfg :telnet, :ssh do pre_logout 'exit' post_login 'enable' post_login 'terminal more disable' end - end