The vmware_nsx.dvs.dvs
Module¶
-
class
vmware_nsx.dvs.dvs.
ClusterManager
¶ Bases:
vmware_nsx.dvs.dvs.VCManagerBase
Management class for Cluster related VC tasks.
-
cluster_host_group_cleanup
(resource_id, n_host_groups=2)¶
-
get_configured_vms
(resource_id, n_host_groups=2)¶
-
update_cluster_edge_failover
(resource_id, vm_moids, host_group_names)¶ Updates cluster for vm placement using DRS
-
validate_host_groups
(resource_id, host_group_names)¶
-
-
class
vmware_nsx.dvs.dvs.
DvsManager
¶ Bases:
vmware_nsx.dvs.dvs.VCManagerBase
Management class for dvs related tasks
The dvs-id is not a class member, since multiple dvs-es can be supported.
-
add_port_group
(dvs_moref, net_id, vlan_tag=None, trunk_mode=False)¶ Add a new port group to the configured DVS.
-
delete_port_group
(dvs_moref, net_id)¶ Delete a specific port group.
-
get_port_group_info
(dvs_moref, net_id)¶ Get portgroup information.
-
update_port_group_security_policy
(pg_spec, status)¶
-
update_port_group_spec_name
(pg_spec, name)¶
-
update_port_group_spec_qos
(pg_spec, qos_data)¶
-
update_port_group_spec_teaming
(pg_spec, teaming_data)¶
-
update_port_group_spec_trunk
(pg_spec, trunk_data)¶
-
update_port_groups_config
(dvs_id, net_id, net_moref, spec_update_calback, spec_update_data)¶
-
-
class
vmware_nsx.dvs.dvs.
SingleDvsManager
¶ Bases:
object
Management class for dvs related tasks for the dvs plugin
For the globally configured dvs. the moref of the configured DVS will be learnt. This will be used in the operations supported by the manager.
-
add_port_group
(net_id, vlan_tag=None, trunk_mode=False)¶
-
delete_port_group
(net_id)¶
-
get_port_group_info
(net_id)¶
-
net_id_to_moref
(net_id)¶
-
-
class
vmware_nsx.dvs.dvs.
VCManager
¶ Bases:
vmware_nsx.dvs.dvs.DvsManager
,vmware_nsx.dvs.dvs.VMManager
,vmware_nsx.dvs.dvs.ClusterManager
Management class for all vc related tasks.
-
class
vmware_nsx.dvs.dvs.
VCManagerBase
¶ Bases:
object
Base class for all VC related classes, to initialize the session
-
get_vc_session
()¶
-
-
class
vmware_nsx.dvs.dvs.
VMManager
¶ Bases:
vmware_nsx.dvs.dvs.VCManagerBase
Management class for VMs related VC tasks.
-
attach_vm_interface
(vm_moref, neutron_port_id, port_mac, nsx_net_id, device_type)¶
-
detach_vm_interface
(vm_moref, device)¶
-
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)¶
-
relocate_vm
(vm_ref, respool_moref=None, datastore_moref=None, host_moref=None, disk_move_type='moveAllDiskBackingsAndAllowSharing')¶
-
relocate_vm_spec
(client_factory, respool_moref=None, datastore_moref=None, host_moref=None, disk_move_type='moveAllDiskBackingsAndAllowSharing')¶
-
update_port_security_policy
(dvs_id, net_id, net_moref, device_id, mac_address, status)¶
-
update_vm_interface
(vm_moref, devices)¶
-
update_vm_network
(device, name='VM Network')¶
-
update_vm_opaque_spec
(vif_info, device)¶ Updates the backing for the VIF spec.
-