]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Neutron-Ironic integration patch
authorSukhdev Kapur <sukhdev@aristanetworks.com>
Wed, 1 Jul 2015 23:30:44 +0000 (16:30 -0700)
committerSukhdev Kapur <sukhdev@aristanetworks.com>
Mon, 10 Aug 2015 17:33:40 +0000 (17:33 +0000)
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

index 63fca88ec0908d38ceac11ed9ded42b7d79a0a9c..5a3d40e2f3fb174e5f39e7717eb5802667da5e1f 100644 (file)
@@ -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': {