From 966203f89dee8fe61fb2dce654e36e510e80380f Mon Sep 17 00:00:00 2001 From: Sukhdev Kapur Date: Wed, 1 Jul 2015 16:30:44 -0700 Subject: [PATCH] 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 --- neutron/extensions/portbindings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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': { -- 2.45.2