The VMware API VM utility module to build SOAP object specs.
-
nova.virt.vmwareapi.vm_util.build_datastore_path(datastore_name, path)
Build the datastore compliant path.
-
nova.virt.vmwareapi.vm_util.create_controller_spec(client_factory, key)
Builds a Config Spec for the LSI Logic Controller’s addition
which acts as the controller for the virtual hard disk to be attached
to the VM.
-
nova.virt.vmwareapi.vm_util.create_network_spec(client_factory, network_name, mac_address)
Builds a config spec for the addition of a new network
adapter to the VM.
-
nova.virt.vmwareapi.vm_util.create_virtual_disk_spec(client_factory, disksize, controller_key, file_path=None)
Builds spec for the creation of a new/ attaching of an already existing
Virtual Disk to the VM.
-
nova.virt.vmwareapi.vm_util.get_add_vswitch_port_group_spec(client_factory, vswitch_name, port_group_name, vlan_id)
Builds the virtual switch port group add spec.
-
nova.virt.vmwareapi.vm_util.get_copy_virtual_disk_spec(client_factory, adapter_type='lsilogic')
Builds the Virtual Disk copy spec.
-
nova.virt.vmwareapi.vm_util.get_dummy_vm_create_spec(client_factory, name, data_store_name)
Builds the dummy VM create spec.
-
nova.virt.vmwareapi.vm_util.get_machine_id_change_spec(client_factory, mac, ip_addr, netmask, gateway)
Builds the machine id change config spec.
-
nova.virt.vmwareapi.vm_util.get_vm_create_spec(client_factory, instance, data_store_name, network_name='vmnet0', os_type='otherGuest')
Builds the VM Create spec.
-
nova.virt.vmwareapi.vm_util.get_vmdk_attach_config_spec(client_factory, disksize, file_path, adapter_type='lsiLogic')
Builds the vmdk attach config spec.
-
nova.virt.vmwareapi.vm_util.get_vmdk_create_spec(client_factory, size_in_kb, adapter_type='lsiLogic')
Builds the virtual disk create spec.
-
nova.virt.vmwareapi.vm_util.get_vmdk_file_path_and_adapter_type(client_factory, hardware_devices)
Gets the vmdk file path and the storage adapter type.
-
nova.virt.vmwareapi.vm_util.split_datastore_path(datastore_path)
Split the VMWare style datastore path to get the Datastore
name and the entity path.