summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/screenos.rb
diff options
context:
space:
mode:
authormediumo <oh@onsteroids.net>2016-07-26 10:13:50 +0200
committerGitHub <noreply@github.com>2016-07-26 10:13:50 +0200
commit9706e4552624341c9ea743f52a02d9991a0db82d (patch)
tree4b344e5bd5adcd0d480d51ec1f8e07a231b00def /lib/oxidized/model/screenos.rb
parent3114b0e399c54768031d4c070cf086534ddd4577 (diff)
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.
Diffstat (limited to 'lib/oxidized/model/screenos.rb')
-rw-r--r--lib/oxidized/model/screenos.rb1
1 files changed, 1 insertions, 0 deletions
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 <removed>'
comment cfg
end