From 233a360e0f975cf9f04a70d5fbbce0e6945967f9 Mon Sep 17 00:00:00 2001 From: Arnoud Vermeer Date: Tue, 23 Aug 2016 16:37:32 +0200 Subject: Use partition-confg for newer devices --- lib/oxidized/model/acos.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/oxidized/model') 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 ' + cfg.gsub! /(Configuration last updated at).*/, '\\1 ' + cfg.gsub! /(Configuration last saved at).*/, '\\1 ' + cfg.gsub! /(Configuration last synchronized at).*/, '\\1 ' + cfg + end + cmd 'show running-config all-partitions' do |cfg| cfg.gsub! /(Current configuration).*/, '\\1 ' cfg.gsub! /(Configuration last updated at).*/, '\\1 ' -- cgit v1.2.1