diff options
author | Everton Marques <everton.marques@gmail.com> | 2016-06-21 12:35:15 -0300 |
---|---|---|
committer | Everton Marques <everton.marques@gmail.com> | 2016-06-21 12:35:15 -0300 |
commit | de6633a59479567d3696593c1c72a630eff54a57 (patch) | |
tree | e0b94b4a913b8de35e23b5e9ee8faca503ff5352 /lib/oxidized/model/coriant8800.rb | |
parent | 570d5e06ea25825c2fcd50023866d87a0c1a9b21 (diff) |
Login/password prompts only for telnet.
Diffstat (limited to 'lib/oxidized/model/coriant8800.rb')
-rw-r--r-- | lib/oxidized/model/coriant8800.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/oxidized/model/coriant8800.rb b/lib/oxidized/model/coriant8800.rb index dfc941e..e54b90b 100644 --- a/lib/oxidized/model/coriant8800.rb +++ b/lib/oxidized/model/coriant8800.rb @@ -2,7 +2,7 @@ class Coriant8800 < Oxidized::Model comment '# ' - prompt /^[^\s#]+#\s/ + prompt /^[^\s#]+#\s$/ cmd 'show node extensive' do |cfg| comment cfg @@ -12,11 +12,14 @@ class Coriant8800 < Oxidized::Model cfg end - cfg :telnet, :ssh do + cfg :telnet do username /^Login:\s$/ password /^Password:\s$/ + end + + cfg :telnet, :ssh do pre_logout 'exit' post_login 'enable config terminal length 0' end - + end |