summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/coriant8600.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/coriant8600.rb')
-rw-r--r--lib/oxidized/model/coriant8600.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/oxidized/model/coriant8600.rb b/lib/oxidized/model/coriant8600.rb
index d54082f..a48ffa5 100644
--- a/lib/oxidized/model/coriant8600.rb
+++ b/lib/oxidized/model/coriant8600.rb
@@ -2,7 +2,7 @@ class Coriant8600 < Oxidized::Model
comment '# '
- prompt /^[^\s#>]+[#>]/
+ prompt /^[^\s#>]+[#>]$/
cmd 'show hw-inventory' do |cfg|
comment cfg
@@ -16,9 +16,12 @@ class Coriant8600 < Oxidized::Model
cfg
end
- cfg :telnet, :ssh do
+ cfg :telnet do
username /^user name:$/
password /^password:$/
+ end
+
+ cfg :telnet, :ssh do
pre_logout 'exit'
post_login 'enable'
post_login 'terminal more off'