From ea8afd886d0ace6acc7debc3b782314cbf0f9ef1 Mon Sep 17 00:00:00 2001 From: Nick Hilliard Date: Sat, 26 Sep 2015 23:11:38 +0100 Subject: move "show inventory" up to stop "show run" from being sandwiched in between comments --- lib/oxidized/model/asa.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/oxidized/model/asa.rb') diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb index d257e9e..547afd7 100644 --- a/lib/oxidized/model/asa.rb +++ b/lib/oxidized/model/asa.rb @@ -23,16 +23,16 @@ class ASA < Oxidized::Model comment cfg end + cmd 'show inventory' do |cfg| + comment cfg + end + cmd 'more system:running-config' do |cfg| cfg = cfg.each_line.to_a[3..-1].join cfg.gsub! /^: [^\n]*\n/, '' cfg end - cmd 'show inventory' do |cfg| - comment cfg - end - cfg :ssh do if vars :enable post_login do -- cgit v1.2.1