summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ios.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-12-27 16:33:15 +0200
committerGitHub <noreply@github.com>2016-12-27 16:33:15 +0200
commita533d4e3d1a4cafb167f46931fb9cc73daedd2f3 (patch)
tree7b3998752908e39a4e20290faa059f6a3a0458ab /lib/oxidized/model/ios.rb
parente791aa89ccddb0c0d400fbc51083817f07ebe695 (diff)
parent36b79918a9e3c4cd62413a5bc044b3a69778f5ac (diff)
Merge pull request #652 from gaetronik/ios_set_term_after_ena
IOS: Configure terminal after enable
Diffstat (limited to 'lib/oxidized/model/ios.rb')
-rw-r--r--lib/oxidized/model/ios.rb4
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