From: Sukhdev Kapur Date: Wed, 1 Jul 2015 23:30:44 +0000 (-0700) Subject: Neutron-Ironic integration patch X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=966203f89dee8fe61fb2dce654e36e510e80380f;p=openstack-build%2Fneutron-build.git Neutron-Ironic integration patch This patch is in preparation for the integration of Ironic and Neutron. A new vnic_type is being added so that ML2 drivers can filter for all Ironic ports based upon match for 'baremetal'. Nova/Ironic will set this vnic_type when issuing port-create request to neutron. (e.g. binding:vnic_type = 'baremetal' ) Change-Id: I25dc9472b31db052719db503a10c1fb1a55572ef Partial-Implements: blueprint neutron-ironic-integration --- diff --git a/neutron/extensions/portbindings.py b/neutron/extensions/portbindings.py index 63fca88ec..5a3d40e2f 100644 --- a/neutron/extensions/portbindings.py +++ b/neutron/extensions/portbindings.py @@ -73,7 +73,8 @@ VIF_TYPES = [VIF_TYPE_UNBOUND, VIF_TYPE_BINDING_FAILED, VIF_TYPE_OVS, VNIC_NORMAL = 'normal' VNIC_DIRECT = 'direct' VNIC_MACVTAP = 'macvtap' -VNIC_TYPES = [VNIC_NORMAL, VNIC_DIRECT, VNIC_MACVTAP] +VNIC_BAREMETAL = 'baremetal' +VNIC_TYPES = [VNIC_NORMAL, VNIC_DIRECT, VNIC_MACVTAP, VNIC_BAREMETAL] EXTENDED_ATTRIBUTES_2_0 = { 'ports': {