The nova.virt.vmwareapi.vm_util Module

The VMware API VM utility module to build SOAP object specs.

build_datastore_path(datastore_name, path)

Build the datastore compliant path.

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.

create_network_spec(client_factory, vif_info)

Builds a config spec for the addition of a new network adapter to the VM.

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.

get_add_vswitch_port_group_spec(client_factory, vswitch_name, port_group_name, vlan_id)

Builds the virtual switch port group add spec.

get_copy_virtual_disk_spec(client_factory, adapter_type='lsilogic')

Builds the Virtual Disk copy spec.

get_dummy_vm_create_spec(client_factory, name, data_store_name)

Builds the dummy VM create spec.

get_machine_id_change_spec(client_factory, machine_id_str)

Builds the machine id change config spec.

get_vm_create_spec(client_factory, instance, data_store_name, vif_infos, os_type='otherGuest')

Builds the VM Create spec.

get_vmdk_attach_config_spec(client_factory, disksize, file_path, adapter_type='lsiLogic')

Builds the vmdk attach config spec.

get_vmdk_create_spec(client_factory, size_in_kb, adapter_type='lsiLogic')

Builds the virtual disk create spec.

get_vmdk_file_path_and_adapter_type(client_factory, hardware_devices)

Gets the vmdk file path and the storage adapter type.

split_datastore_path(datastore_path)

Split the VMWare style datastore path to get the Datastore name and the entity path.

Previous topic

The nova.virt.vmwareapi.vim_util Module

Next topic

The nova.virt.vmwareapi.vmops Module

This Page