diff options
author | ytti <saku@ytti.fi> | 2013-05-12 06:42:01 -0700 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2013-05-12 06:42:01 -0700 |
commit | b19297dde99dfa2430f96ab90b9daeed2a9f340b (patch) | |
tree | dcbb65120ddde3860f2de32936bb3dbbc0ab594a /lib/oxidized/model/powerconnect.rb | |
parent | 0a9ff589905b4637dc2c824d761dfbfec6cb00db (diff) | |
parent | 0d28c4a5e6a8c64d765229cc26e6574fb7a35a5d (diff) |
Merge pull request #5 from nopedial/workflow
Add procurve model, enhance powerconnect model, add EHOSTUNREACH rescue to input/ssh.rb
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 |