diff options
author | Samer Abdel-Hafez <sam@arahant.net> | 2015-02-27 10:11:23 +0100 |
---|---|---|
committer | Samer Abdel-Hafez <sam@arahant.net> | 2015-02-27 10:11:27 +0100 |
commit | b486d6af369ee3dcac00a92b646245c93abead14 (patch) | |
tree | c56a48ee0e5f7ac908d6bc89b823bf44b9792c99 /lib/oxidized | |
parent | 3944e0de10e999ee92db96edb31383dd565bf89a (diff) |
Minor cosmetic changes and additions
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/eos.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |