The vmware_nsx.dvs.dvs Module

class vmware_nsx.dvs.dvs.DvsManager(dvs_id=None)

Bases: object

Management class for dvs related tasks.

add_port_group(net_id, vlan_tag=None)

Add a new port group to the configured DVS.

attach_vm_interface(vm_moref, neutron_port_id, port_mac, nsx_net_id, device_type)
delete_port_group(net_id)

Delete a specific port group.

detach_vm_interface(vm_moref, device)
get_portgroup_info(pg_moref)

Get portgroup information.

get_vm_interfaces_info(vm_moref)
get_vm_moref(instance_uuid)

Get reference to the VM.

get_vm_moref_obj(instance_uuid)

Get reference to the VM. The method will make use of FindAllByUuid to get the VM reference. This method finds all VM’s on the backend that match the instance_uuid, more specifically all VM’s on the backend that have ‘config_spec.instanceUuid’ set to ‘instance_uuid’.

get_vm_spec(vm_moref)
update_port_group_spec_qos(pg_spec, qos_data)
update_port_groups_config(net_id, net_moref, spec_update_calback, spec_update_data)

Previous topic

The vmware_nsx.dhcp_meta.rpc Module

Next topic

The vmware_nsx.dvs.dvs_utils Module

This Page