diff options
author | ytti <saku@ytti.fi> | 2017-02-04 11:52:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-04 11:52:44 +0200 |
commit | a2c727de033e9c5b837e327dfa5c3328ae89793e (patch) | |
tree | 07633fde3175972283c92f90a879441efc00dcf1 /lib | |
parent | 66911c18259e17e6381517b9a495b61423ed44ad (diff) | |
parent | b8fdd1c5d752a0f27a9a4ccab429ba6393450ccd (diff) |
Merge pull request #693 from wendelj/master
Restore compatibility with older versions of IronWare
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/ironware.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb index 5b58f22..bfcd3a4 100644 --- a/lib/oxidized/model/ironware.rb +++ b/lib/oxidized/model/ironware.rb @@ -74,16 +74,20 @@ class IronWare < Oxidized::Model cfg :telnet, :ssh do if vars :enable post_login do - send "enable\r\n" + send "enable\n" cmd vars(:enable) end end post_login '' post_login 'skip-page-display' post_login 'terminal length 0' - pre_logout 'logout' - pre_logout 'exit' - pre_logout 'exit' + pre_logout do + send "logout\n" + sleep 0.01 + send "exit\n" + sleep 0.01 + send "exit\n" + end end end |