summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorStefan Schlesinger <sts@ono.at>2014-10-23 18:59:44 +0200
committerStefan Schlesinger <sts@ono.at>2014-10-23 18:59:44 +0200
commit764ebd865a8360057dea1b913cd41d6361e0a01f (patch)
treee0a93533dad2001e9e9625e82742233d517bb540 /lib/oxidized/model
parent34c4559c845bd6ba239bbf1013fcebbd8041e6c3 (diff)
model/asa: removing >show clock and ignoring uptime in >show version
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/asa.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb
index b2c3e01..11db547 100644
--- a/lib/oxidized/model/asa.rb
+++ b/lib/oxidized/model/asa.rb
@@ -16,11 +16,10 @@ class ASA < Oxidized::Model
cfg
end
- cmd 'show clock' do |cfg|
- comment cfg
- end
-
cmd 'show version' do |cfg|
+ # avoid commits due to uptime / ixo-router01 up 2 mins 28 secs / ixo-router01 up 1 days 2 hours
+ cfg = cfg.each_line.select { |line| not line.match /\s+up\s+\d+\s+/ }
+ cfg = cfg.join
comment cfg
end