summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hilliard <nick@foobar.org>2015-09-26 23:11:38 +0100
committerNick Hilliard <nick@foobar.org>2015-09-26 23:11:38 +0100
commitea8afd886d0ace6acc7debc3b782314cbf0f9ef1 (patch)
treee873871bf5d8189bf95e1bf4a2cc2193c718efde
parent576a0b1df455d14f4bde0d21c63a1a498248e485 (diff)
move "show inventory" up to stop "show run" from being sandwiched in between comments
-rw-r--r--lib/oxidized/model/asa.rb8
1 files changed, 4 insertions, 4 deletions
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