diff options
author | charlesklement <cjk@danaher.net> | 2016-05-26 11:40:24 -0700 |
---|---|---|
committer | charlesklement <cjk@danaher.net> | 2016-05-26 11:40:24 -0700 |
commit | 9c3b9963b1cfa930781372c981bef0e2a95507b0 (patch) | |
tree | 5854ec74a16fdee2aa9b59ee3f6c75a90e2ee87d /lib | |
parent | 6858d908c214e869f72b95fed66390bf50efe3b1 (diff) |
remove frequently changing lines in 'show system info'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/panos.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/oxidized/model/panos.rb b/lib/oxidized/model/panos.rb index 35624b7..68d80c3 100644 --- a/lib/oxidized/model/panos.rb +++ b/lib/oxidized/model/panos.rb @@ -11,7 +11,14 @@ class PanOS < Oxidized::Model end cmd 'show system info' do |cfg| - cfg.gsub! /^(up)?time:\ .*\n/, '' + cfg.gsub! /^(up)?time:\ .*$/, '' + cfg.gsub! /^app-.*?:\ .*$/, '' + cfg.gsub! /^av-.*?:\ .*$/, '' + cfg.gsub! /^threat-.*?:\ .*$/, '' + cfg.gsub! /^wildfire-.*?:\ .*$/, '' + cfg.gsub! /^wf-private.*?:\ .*$/, '' + cfg.gsub! /^url-filtering.*?:\ .*$/, '' + cfg.gsub! /^global-.*?:\ .*$/, '' comment cfg end |