Project

General

Profile

« Previous | Next » 

Revision 41ee835f

Added by Martin Matuška over 10 years ago

fixes #3496 vSphere: add support for selectable SCSI controller

View differences:

app/models/compute_resources/foreman/model/vmware.rb
}
end
def scsi_controller_types
{
"VirtualLsiLogicController" => "LSI Logic Parallel",
"VirtualLsiLogicSASController" => "LSI Logic SAS",
"VirtualBusLogicController" => "Bus Logic Parallel",
"ParaVirtualSCSIController" => "VMware Paravirtual"
}
end
def scsi_controller_default_type
"VirtualLsiLogicController"
end
def datastores
dc.datastores.all(:accessible => true)
end
......
:memory_mb => 768,
:interfaces => [new_interface],
:volumes => [new_volume],
:scsi_controller => { :type => scsi_controller_default_type },
:datacenter => datacenter
)
end

Also available in: Unified diff