diff options
author | Wild Kat <wk@futureinquestion.net> | 2018-04-21 13:27:05 +0200 |
---|---|---|
committer | Wild Kat <wk@futureinquestion.net> | 2018-04-21 13:35:54 +0200 |
commit | 21e3d6490496573f25ef77fe8172766ac7d1a736 (patch) | |
tree | 785e5243f5f7ffe7e5a4bfcde551ec04c723b2ae /lib/oxidized/model/gcombnps.rb | |
parent | 2648b1bb271727976e2d96123fcd51d52af39f79 (diff) |
the great makeover - standardize layout, alignment, indentation
Diffstat (limited to 'lib/oxidized/model/gcombnps.rb')
-rw-r--r-- | lib/oxidized/model/gcombnps.rb | 19 |
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 - |