This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 docs or all OpenStack docs too.

The nova.virt.vmwareapi.network_utils Module

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.