summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnoud Vermeer <a.vermeer@tech.leaseweb.com>2016-08-23 16:37:32 +0200
committerArnoud Vermeer <a.vermeer@tech.leaseweb.com>2016-08-23 16:37:32 +0200
commit233a360e0f975cf9f04a70d5fbbce0e6945967f9 (patch)
treeb61584eaf915a8c270bb16a64d3e67df185c0163
parent0c925a7e8e3ff2b8b1f8b69443032a37c7f8dbcc (diff)
Use partition-confg for newer devices
-rw-r--r--lib/oxidized/model/acos.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/oxidized/model/acos.rb b/lib/oxidized/model/acos.rb
index ec78711..37d2c4e 100644
--- a/lib/oxidized/model/acos.rb
+++ b/lib/oxidized/model/acos.rb
@@ -37,6 +37,14 @@ class ACOS < Oxidized::Model
cfg
end
+ cmd 'show partition-config all' do |cfg|
+ cfg.gsub! /(Current configuration).*/, '\\1 <removed>'
+ cfg.gsub! /(Configuration last updated at).*/, '\\1 <removed>'
+ cfg.gsub! /(Configuration last saved at).*/, '\\1 <removed>'
+ cfg.gsub! /(Configuration last synchronized at).*/, '\\1 <removed>'
+ cfg
+ end
+
cmd 'show running-config all-partitions' do |cfg|
cfg.gsub! /(Current configuration).*/, '\\1 <removed>'
cfg.gsub! /(Configuration last updated at).*/, '\\1 <removed>'