summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/coriant8800.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/coriant8800.rb')
-rw-r--r--lib/oxidized/model/coriant8800.rb9
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