mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
Feature #5247: Enable disc and nic import for wild vms
This commit is contained in:
parent
0fd1d2da7c
commit
b0eaefe61e
@ -34,24 +34,24 @@ def self.import_wild(host_id, vm_ref, one_vm, template)
|
||||
wild = true
|
||||
sunstone = false
|
||||
|
||||
#error, template_disks = vcenter_vm.import_vcenter_disks(vc_uuid, dpool, ipool, sunstone)
|
||||
#return OpenNebula::Error.new(error) if !error.empty?
|
||||
error, template_disks = vcenter_vm.import_vcenter_disks(vc_uuid, dpool, ipool, sunstone)
|
||||
return OpenNebula::Error.new(error) if !error.empty?
|
||||
|
||||
#template << template_disks
|
||||
template << template_disks
|
||||
|
||||
# Create images or get nics information for template
|
||||
#error, template_nics = vcenter_vm.import_vcenter_nics(vc_uuid,
|
||||
# npool,
|
||||
# hpool,
|
||||
# vc_name,
|
||||
# vm_ref,
|
||||
# wild,
|
||||
# sunstone,
|
||||
# vm_name)
|
||||
#
|
||||
#return OpenNebula::Error.new(error) if !error.empty?
|
||||
error, template_nics = vcenter_vm.import_vcenter_nics(vc_uuid,
|
||||
npool,
|
||||
hpool,
|
||||
vc_name,
|
||||
vm_ref,
|
||||
wild,
|
||||
sunstone,
|
||||
vm_name)
|
||||
|
||||
return OpenNebula::Error.new(error) if !error.empty?
|
||||
|
||||
#template << template_nics
|
||||
template << template_nics
|
||||
|
||||
# Get DS_ID for the deployment, the wild VM needs a System DS
|
||||
dc_ref = vcenter_vm.get_dc.item._ref
|
||||
|
Loading…
Reference in New Issue
Block a user