From 496baf4dffedafd2d8068e76c89063fe1c6b99ac Mon Sep 17 00:00:00 2001 From: Jason Lixfeld Date: Tue, 10 Jan 2017 09:52:44 -0500 Subject: Add support for telnet --- lib/oxidized/model/nxos.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1