summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-09-27 02:59:03 -0500
committerytti <saku@ytti.fi>2015-09-27 02:59:03 -0500
commit3bf7a78e756bc1ac58d52be31be07fad57f233c0 (patch)
tree275d472f76dd42575c6fc5101a154dcae9ee5aa0 /lib/oxidized
parent576a0b1df455d14f4bde0d21c63a1a498248e485 (diff)
parent31054ca0e17ffa5bd7a169cc04d00480e7ce64e6 (diff)
Merge pull request #198 from nickhilliard/br-fix-ironware-cmd-order
put "show run" at the bottom of oxidized output
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/ironware.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb
index 805e07b..d248e1a 100644
--- a/lib/oxidized/model/ironware.rb
+++ b/lib/oxidized/model/ironware.rb
@@ -19,11 +19,6 @@ class IronWare < Oxidized::Model
cfg.each_line.to_a[1..-2].join
end
- cmd 'show running-config' do |cfg|
- cfg = cfg.each_line.to_a[3..-1].join
- cfg
- end
-
cmd 'show version' do |cfg|
cfg.gsub! /(^((.*)[Ss]ystem uptime(.*))$)/, '' #remove unwanted line system uptime
cfg.gsub! /[Uu]p\s?[Tt]ime is .*/,''
@@ -58,6 +53,11 @@ class IronWare < Oxidized::Model
comment cfg
end
+ cmd 'show running-config' do |cfg|
+ cfg = cfg.each_line.to_a[3..-1].join
+ cfg
+ end
+
cfg :telnet do
username /^Username:/
password /^Password:/