Skip to content

Commit

Permalink
Merge pull request #1 from STetzel/STetzel-patch-1
Browse files Browse the repository at this point in the history
Update hpebladesystem.rb
  • Loading branch information
STetzel authored Mar 26, 2018
2 parents 3320661 + 5ac9b61 commit cc0235c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/oxidized/model/hpebladesystem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ class HPEBladeSystem < Oxidized::Model
prompt /.*> /
comment '# '

expect /^\s*--More--\s+.*$/ do |data, re|
send ' '
data.sub re, ''
end
#expect /^\s*--More--\s+.*$/ do |data, re|
# send ' '
# data.sub re, ''
#end

cmd :all do |cfg|
cfg = cfg.delete("\r").each_line.to_a[0..-1].map{|line|line.rstrip}.join("\n") + "\n"
Expand Down Expand Up @@ -40,6 +40,7 @@ class HPEBladeSystem < Oxidized::Model
end

cmd 'show network' do |cfg|
cfg.gsub! /Last Update:.*$/i, ''
comment cfg
end

Expand Down Expand Up @@ -78,6 +79,7 @@ class HPEBladeSystem < Oxidized::Model
end

cfg :telnet, :ssh do
post_login "set script mode on"
pre_logout "exit"
end
end

0 comments on commit cc0235c

Please sign in to comment.