From 3a3d523f7f7c740207dd37f8a0014a5eb714ac4d Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Wed, 3 Feb 2016 11:57:42 +0000 Subject: We didn't wait for prompt after enable This makes the model racy, some might say broken. --- lib/oxidized/model/ios.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model/ios.rb') diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index 6fa3c5c..f31303c 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -58,7 +58,7 @@ class IOS < Oxidized::Model if vars :enable post_login do send "enable\n" - send vars(:enable) + "\n" + cmd vars(:enable) end end pre_logout 'exit' -- cgit v1.2.1