diff options
author | ytti <saku@ytti.fi> | 2017-01-10 19:03:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 19:03:54 +0200 |
commit | f5d5a6e4dfaccc1262351fcbba7d88c4be7c0687 (patch) | |
tree | 1b5438864ec371b919c451dd324876b8520418ae | |
parent | 131adcc429e09da969284fda48a319625533ef80 (diff) | |
parent | 496baf4dffedafd2d8068e76c89063fe1c6b99ac (diff) |
Merge pull request #661 from jlixfeld/master
Add support for telnet
-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 |