diff options
author | nopedial <samer@m247.com> | 2013-05-12 13:35:37 +0100 |
---|---|---|
committer | nopedial <samer@m247.com> | 2013-05-12 13:35:37 +0100 |
commit | 50ec31c6d425c17b2e86070bf4b0bda7c2e03256 (patch) | |
tree | 6e134f53f71bdacfb0482b1bc3ae522fef5b7761 /lib/oxidized/model/powerconnect.rb | |
parent | 0a9ff589905b4637dc2c824d761dfbfec6cb00db (diff) |
models enhance
Diffstat (limited to 'lib/oxidized/model/powerconnect.rb')
-rw-r--r-- | lib/oxidized/model/powerconnect.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb index 0dbd808..304fc86 100644 --- a/lib/oxidized/model/powerconnect.rb +++ b/lib/oxidized/model/powerconnect.rb @@ -4,6 +4,11 @@ class PowerConnect < Oxidized::Model comment '! ' + expect /^\s--More--\s+.*$/ do |data, re| + send ' ' + data.sub re, '' + end + cmd :all do |cfg| cfg.each_line.to_a[1..-3].join end @@ -25,6 +30,7 @@ class PowerConnect < Oxidized::Model cfg :telnet, :ssh do post_login 'terminal datadump' + post_login 'enable' pre_logout 'exit' end |