Skip to content

Commit

Permalink
Add OVS datapath type to port profile
Browse files Browse the repository at this point in the history
Open vSwitch can have different datapath types configured
and is required by the VIF plug plugin when setting up
the bridge.  Adding the datapath type to the VIF port profile
permits the proper value to be configured when configuring
the port.

Signed-off-by: Matt Peters <matt.peters@windriver.com>
  • Loading branch information
mpeters-wrs authored and dtroyer committed Jun 15, 2018
1 parent 71acfea commit fe0c061
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nova/network/os_vif_util.py
Expand Up @@ -280,7 +280,8 @@ def _nova_to_osvif_vif_bridge(vif):
def _nova_to_osvif_vif_ovs(vif):
vnic_type = vif.get('vnic_type', model.VNIC_TYPE_NORMAL)
profile = objects.vif.VIFPortProfileOpenVSwitch(
interface_id=vif.get('ovs_interfaceid') or vif['id'])
interface_id=vif.get('ovs_interfaceid') or vif['id'],
datapath_type=vif['details'].get('datapath_type'))
if vnic_type == model.VNIC_TYPE_DIRECT:
profile = objects.vif.VIFPortProfileOVSRepresentor(
interface_id=vif.get('ovs_interfaceid') or vif['id'],
Expand Down

1 comment on commit fe0c061

@mriedem
Copy link
Contributor

@mriedem mriedem commented on fe0c061 Aug 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, this is already in upstream nova per commit:

openstack/nova@ce8bf67

Please sign in to comment.