From: Gary Kotton Date: Fri, 25 Jul 2014 00:41:38 +0000 (-0700) Subject: Add definition for new VIF type X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=75d89c02cb1349908d7c43bc94a667aa0b5b1e9c;p=openstack-build%2Fneutron-build.git Add definition for new VIF type 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 --- diff --git a/neutron/extensions/portbindings.py b/neutron/extensions/portbindings.py index 97574a1bf..d2805f60d 100644 --- a/neutron/extensions/portbindings.py +++ b/neutron/extensions/portbindings.py @@ -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'