summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/oxidized/model/nxos.rb7
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