From e5dc1dedf976a12c278f68c284c976ed462cdcb4 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Tue, 1 Nov 2016 02:04:31 +0200 Subject: expect prompt after sending enable password --- lib/oxidized/model/dnos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/dnos.rb b/lib/oxidized/model/dnos.rb index a6cc05f..a44630e 100644 --- a/lib/oxidized/model/dnos.rb +++ b/lib/oxidized/model/dnos.rb @@ -36,7 +36,7 @@ class DNOS < Oxidized::Model if vars :enable post_login do send "enable\n" - send vars(:enable) + "\n" + cmd vars(:enable) end end post_login 'terminal length 0' -- cgit v1.2.1