Merge "VMware: add in DVS VXLAN support"

This commit is contained in:
Jenkins 2014-09-02 10:51:25 +00:00 committed by Gerrit Code Review
commit 717650e785
1 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,9 @@ def get_network_with_the_name(session, network_name="vmnet0", cluster=None):
"DistributedVirtualPortgroup", "config")
# NOTE(asomya): This only works on ESXi if the port binding is
# set to ephemeral
if props.name == network_name:
# For a VLAN the network name will be the UUID. For a VXLAN
# network this will have a VXLAN prefix and then the network name.
if network_name in props.name:
network_obj['type'] = 'DistributedVirtualPortgroup'
network_obj['dvpg'] = props.key
dvs_props = session._call_method(vim_util,