From 53f3fb648c43a6e31f9d271407cb5d36e2ff2673 Mon Sep 17 00:00:00 2001 From: Thomas Davis Date: Fri, 3 Jun 2016 10:11:13 -0700 Subject: NOS v7 has an 'up' date field in the show chassis command that is the current day. This removes that 'up' date value from the show chassis command. --- lib/oxidized/model/nos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized') diff --git a/lib/oxidized/model/nos.rb b/lib/oxidized/model/nos.rb index f71420b..ec7c818 100644 --- a/lib/oxidized/model/nos.rb +++ b/lib/oxidized/model/nos.rb @@ -22,7 +22,7 @@ class NOS < Oxidized::Model end cmd 'show chassis' do |cfg| - comment cfg.each_line.reject { |line| line.match /Time/ }.join + comment cfg.each_line.reject { |line| line.match /Time/ or line.match /Update/ }.join end cfg 'show system' do |cfg| -- cgit v1.2.1