summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSamer Abdel-Hafez <sam@arahant.net>2015-02-27 10:11:23 +0100
committerSamer Abdel-Hafez <sam@arahant.net>2015-02-27 10:11:27 +0100
commitb486d6af369ee3dcac00a92b646245c93abead14 (patch)
treec56a48ee0e5f7ac908d6bc89b823bf44b9792c99 /lib
parent3944e0de10e999ee92db96edb31383dd565bf89a (diff)
Minor cosmetic changes and additions
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/eos.rb6
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