diff options
author | Gaƫtan Duchaussois <gaetan-github@pignouf.fr> | 2016-12-27 15:20:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-27 15:20:23 +0100 |
commit | 36b79918a9e3c4cd62413a5bc044b3a69778f5ac (patch) | |
tree | 7b3998752908e39a4e20290faa059f6a3a0458ab /lib/oxidized/model/ios.rb | |
parent | e791aa89ccddb0c0d400fbc51083817f07ebe695 (diff) |
Update ios.rb
Do the terminal configure after enable since it might be prohibited in non ena
Diffstat (limited to 'lib/oxidized/model/ios.rb')
-rw-r--r-- | lib/oxidized/model/ios.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index 3cbe0f0..040548a 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -58,8 +58,6 @@ class IOS < Oxidized::Model end cfg :telnet, :ssh do - post_login 'terminal length 0' - post_login 'terminal width 0' # preferred way to handle additional passwords if vars :enable post_login do @@ -67,6 +65,8 @@ class IOS < Oxidized::Model cmd vars(:enable) end end + post_login 'terminal length 0' + post_login 'terminal width 0' pre_logout 'exit' end |