summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/powerconnect.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb
index 304fc86..4f90b77 100644
--- a/lib/oxidized/model/powerconnect.rb
+++ b/lib/oxidized/model/powerconnect.rb
@@ -13,16 +13,17 @@ class PowerConnect < Oxidized::Model
cfg.each_line.to_a[1..-3].join
end
- cmd 'show running-config'
-
cmd 'show version' do |cfg|
comment cfg
end
cmd 'show system' do |cfg|
+ cfg = cfg.each_line.take_while { |line| not line.match(/uptime/i) }
comment cfg
end
+ cmd 'show running-config'
+
cfg :telnet do
username /^User( Name)?:/
password /^\r?Password:/