]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add definition for new VIF type
authorGary Kotton <gkotton@vmware.com>
Fri, 25 Jul 2014 00:41:38 +0000 (17:41 -0700)
committerGary Kotton <gkotton@vmware.com>
Fri, 25 Jul 2014 17:53:19 +0000 (10:53 -0700)
The type VIF_TYPE_DVS is added. This indicates that the port
will be added to a VMware distributed virtual switch.

This is for blueprint vsphere-neutron.

Change-Id: I1b5df837734af9a3f7d48b60de120592b11e392e

neutron/extensions/portbindings.py

index 97574a1bff3955b9aec84fa482ebeb10b20738fa..d2805f60ded00682550b3a9e19bd1d93f8301c64 100644 (file)
@@ -52,6 +52,7 @@ VIF_TYPE_BINDING_FAILED = 'binding_failed'
 VIF_TYPE_IOVISOR = 'iovisor'
 VIF_TYPE_OVS = 'ovs'
 VIF_TYPE_IVS = 'ivs'
+VIF_TYPE_DVS = 'dvs'
 VIF_TYPE_BRIDGE = 'bridge'
 VIF_TYPE_802_QBG = '802.1qbg'
 VIF_TYPE_802_QBH = '802.1qbh'
@@ -65,7 +66,7 @@ VIF_TYPES = [VIF_TYPE_UNBOUND, VIF_TYPE_BINDING_FAILED, VIF_TYPE_OVS,
              VIF_TYPE_IVS, VIF_TYPE_BRIDGE, VIF_TYPE_802_QBG,
              VIF_TYPE_802_QBH, VIF_TYPE_HYPERV, VIF_TYPE_MIDONET,
              VIF_TYPE_MLNX_DIRECT, VIF_TYPE_MLNX_HOSTDEV, VIF_TYPE_HW_VEB,
-             VIF_TYPE_OTHER]
+             VIF_TYPE_DVS, VIF_TYPE_OTHER]
 
 VNIC_NORMAL = 'normal'
 VNIC_DIRECT = 'direct'