diff options
author | Saku Ytti <saku@ytti.fi> | 2014-04-14 17:24:19 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-04-14 17:24:19 +0300 |
commit | f75316a096449d8eec01d4fbed57016b4538e17f (patch) | |
tree | c29d4d84d59c3a12df53da215058570ed8b6309f /lib/oxidized/model/ios.rb | |
parent | 57a8f4bc04b4f87ad0d7028dcbf29b96d49eaffd (diff) |
depend on Asetus
Change models to Asetus syntax
Diffstat (limited to 'lib/oxidized/model/ios.rb')
-rw-r--r-- | lib/oxidized/model/ios.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index b9a9316..11e605a 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -12,7 +12,7 @@ class IOS < Oxidized::Model # non-preferred way to handle additional PW prompt #expect /^[\w.]+>$/ do |data| # send "enable\n" - # send CFG.vars[:enable] + "\n" + # send CFG.vars.enable + "\n" # data #end @@ -45,10 +45,10 @@ class IOS < Oxidized::Model post_login 'terminal length 0' post_login 'terminal width 0' # preferred way to handle additional passwords - if CFG.vars[:enable] and CFG.vars[:enable] != '' + if CFG.vars.enable? post_login do send "enable\n" - send CFG.vars[:enable] + "\n" + send CFG.vars.enable + "\n" end end pre_logout 'exit' |