From 9706e4552624341c9ea743f52a02d9991a0db82d Mon Sep 17 00:00:00 2001 From: mediumo Date: Tue, 26 Jul 2016 10:13:50 +0200 Subject: Add files via upload removed current bandwith from get system, because it can create different config versions when there is traffic on the interfaces. current bw is just stats. --- lib/oxidized/model/screenos.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oxidized') diff --git a/lib/oxidized/model/screenos.rb b/lib/oxidized/model/screenos.rb index 7ee9d9f..269f256 100644 --- a/lib/oxidized/model/screenos.rb +++ b/lib/oxidized/model/screenos.rb @@ -20,6 +20,7 @@ class ScreenOS < Oxidized::Model cmd 'get system' do |cfg| cfg.gsub! /^Date\ .*\n/, '' cfg.gsub! /^Up\ .*\n/, '' + cfg.gsub! /(current bw ).*/, '\\1 ' comment cfg end -- cgit v1.2.1 From 1f51347fc4924fca04513182b3cc6fb61ef52528 Mon Sep 17 00:00:00 2001 From: mediumo Date: Tue, 26 Jul 2016 11:43:18 +0200 Subject: Update screenos.rb --- lib/oxidized/model/screenos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized') diff --git a/lib/oxidized/model/screenos.rb b/lib/oxidized/model/screenos.rb index 269f256..0258898 100644 --- a/lib/oxidized/model/screenos.rb +++ b/lib/oxidized/model/screenos.rb @@ -20,7 +20,7 @@ class ScreenOS < Oxidized::Model cmd 'get system' do |cfg| cfg.gsub! /^Date\ .*\n/, '' cfg.gsub! /^Up\ .*\n/, '' - cfg.gsub! /(current bw ).*/, '\\1 ' + cfg.gsub! /(current bw ).*/, '\\1 ' comment cfg end -- cgit v1.2.1