Utility functions for ESX Networking.
-
nova.virt.vmwareapi.network_utils.check_if_vlan_interface_exists(session, vlan_interface)
Checks if the vlan_inteface exists on the esx host.
-
nova.virt.vmwareapi.network_utils.create_port_group(session, pg_name, vswitch_name, vlan_id=0)
Creates a port group on the host system with the vlan tags
supplied. VLAN id 0 means no vlan id association.
-
nova.virt.vmwareapi.network_utils.get_network_with_the_name(session, network_name='vmnet0')
Gets reference to the network whose name is passed as the
argument.
-
nova.virt.vmwareapi.network_utils.get_vlanid_and_vswitch_for_portgroup(session, pg_name)
Get the vlan id and vswicth associated with the port group.
-
nova.virt.vmwareapi.network_utils.get_vswitch_for_vlan_interface(session, vlan_interface)
Gets the vswitch associated with the physical network adapter
with the name supplied.