From b486d6af369ee3dcac00a92b646245c93abead14 Mon Sep 17 00:00:00 2001 From: Samer Abdel-Hafez Date: Fri, 27 Feb 2015 10:11:23 +0100 Subject: Minor cosmetic changes and additions --- lib/oxidized/model/eos.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/eos.rb b/lib/oxidized/model/eos.rb index 46f44a2..eb1d9c7 100644 --- a/lib/oxidized/model/eos.rb +++ b/lib/oxidized/model/eos.rb @@ -26,6 +26,12 @@ class EOS < Oxidized::Model end cfg :telnet, :ssh do + if vars :enable + post_login do + send "enable\n" + send vars(:enable) + "\n" + end + end pre_logout 'exit' end -- cgit v1.2.1