346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
# File 'lib/puppet/util/hpe3par_api.rb', line 346
def create_vlun(volume_name, lunid = nil, host_name=nil, node = nil, slot = nil,
card_port = nil, auto = true, debug = false)
cl = Hpe3parSdk::Client.new(@rest_url, debug: debug)
port_pos = nil
if !node.nil? && !slot.nil? && !card_port.nil?
port_pos={
:node => node,
:slot => slot,
:cardPort => card_port
}
end
begin
cl.login(@url.user, @url.password)
cl.create_vlun(volume_name, lunid, host_name, port_pos, no_vcn = nil,
override_lower_priority = nil, auto)
ensure
cl.logout
end
end
|