summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/iosxr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/iosxr.rb')
-rw-r--r--lib/oxidized/model/iosxr.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/iosxr.rb b/lib/oxidized/model/iosxr.rb
index 023dcca..1129a0c 100644
--- a/lib/oxidized/model/iosxr.rb
+++ b/lib/oxidized/model/iosxr.rb
@@ -29,10 +29,10 @@ class IOSXR < Oxidized::Model
cfg :telnet, :ssh do
post_login 'terminal length 0'
post_login 'terminal width 0'
- if CFG.vars.enable?
+ if vars :enable
post_login do
send "enable\n"
- send CFG.vars.enable + "\n"
+ send vars(:enable) + "\n"
end
end
pre_logout 'exit'