From 36b79918a9e3c4cd62413a5bc044b3a69778f5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Duchaussois?= Date: Tue, 27 Dec 2016 15:20:23 +0100 Subject: Update ios.rb Do the terminal configure after enable since it might be prohibited in non ena --- lib/oxidized/model/ios.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/oxidized') 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 -- cgit v1.2.1