summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/gcombnps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/gcombnps.rb')
-rw-r--r--lib/oxidized/model/gcombnps.rb19
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/oxidized/model/gcombnps.rb b/lib/oxidized/model/gcombnps.rb
index 4a97162..e92c7ba 100644
--- a/lib/oxidized/model/gcombnps.rb
+++ b/lib/oxidized/model/gcombnps.rb
@@ -6,18 +6,18 @@ class GcomBNPS < Oxidized::Model
# - S5330 (aka Fiberstore S3800)
prompt /^\r?([\w.@()-]+?(\(1-16 chars\))?[#>:]\s?)$/ # also match SSH password promt (post_login commands are sent after the first prompt)
- comment '! '
+ comment '! '
-# alternative to handle the SSH login, but this breaks telnet
-# expect /^Password\(1-16 chars\):/ do |data|
-# send @node.auth[:password] + "\n"
-# ''
-# end
+ # alternative to handle the SSH login, but this breaks telnet
+ # expect /^Password\(1-16 chars\):/ do |data|
+ # send @node.auth[:password] + "\n"
+ # ''
+ # end
# handle pager (can't be disabled?)
expect /^\.\.\.\.press ENTER to next line, CTRL_C to quit, other key to next page\.\.\.\.$/ do |data, re|
- send ' '
- data.sub re, ''
+ send ' '
+ data.sub re, ''
end
cmd :all do |cfg|
@@ -48,7 +48,6 @@ class GcomBNPS < Oxidized::Model
comment out.join
end
-
cmd 'show version' do |cfg|
comment cfg
end
@@ -80,6 +79,4 @@ class GcomBNPS < Oxidized::Model
cfg :telnet, :ssh do
pre_logout 'exit'
end
-
end
-