diff options
author | Jason Lixfeld <jlixfeld@BlackBox-3.local> | 2017-01-10 09:52:44 -0500 |
---|---|---|
committer | Jason Lixfeld <jlixfeld@BlackBox-3.local> | 2017-01-10 09:52:44 -0500 |
commit | 496baf4dffedafd2d8068e76c89063fe1c6b99ac (patch) | |
tree | 1b5438864ec371b919c451dd324876b8520418ae /lib/oxidized/model/nxos.rb | |
parent | 131adcc429e09da969284fda48a319625533ef80 (diff) |
Add support for telnet
Diffstat (limited to 'lib/oxidized/model/nxos.rb')
-rw-r--r-- | lib/oxidized/model/nxos.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/oxidized/model/nxos.rb b/lib/oxidized/model/nxos.rb index 6163724..fbe772d 100644 --- a/lib/oxidized/model/nxos.rb +++ b/lib/oxidized/model/nxos.rb @@ -16,8 +16,13 @@ class NXOS < Oxidized::Model cfg.gsub! /^!Time:[^\n]*\n/, '' end - cfg :ssh do + cfg :ssh, :telnet do post_login 'terminal length 0' pre_logout 'exit' end + + cfg :telnet do + username /^login:/ + password /^Password:/ + end end |