3.) since neutron requires all bridges to be of the same datapath type
so that patch ports will work we can list the active datapath types using ovs-appctl.
if only one datapath type is active then that is the type that should be used for the bridge.
if both datapaths are active we could raise an exception and refuse to plug the interface or make a best effort guess.
possible solutions.
1.) introduce a config variable to set the datapath type for the VIF_OVS type. this would mirror the ovs agent datapath type variable in neutron /github. com/openstack/ neutron/ blob/f0ca030595 cb7484be338c567 8738b2e536b2369 /neutron/ plugins/ ml2/drivers/ openvswitch/ agent/common/ config. py#L75- L80
https:/
this would require no changes to nova or neutron but would adress the regression in fuctionality but require operators to set the config value if they happened to use the netdev datapath without dpdk e.g. not use vhost-user interfaces.
2.) modify the neutron ml2 dirver here to pass the datapath type to nova via the vif_details. /github. com/openstack/ neutron/ blob/f0ca030595 cb7484be338c567 8738b2e536b2369 /neutron/ plugins/ ml2/drivers/ openvswitch/ mech_driver/ mech_openvswitc h.py#L108- L128 /github. com/openstack/ os-vif/ blob/master/ os_vif/ objects/ network. py to store the datapath and modify the os-vif ovs plugin to read it just as we do with the bridge name here /github. com/openstack/ os-vif/ blob/9fb7fe5129 02a37432e38d884 b8be59ce91582db /vif_plug_ ovs/ovs. py#L100- L101
https:/
then modify the os-vif network object
https:/
https:/
also need to modify nova to retrieve the datapath type form the vif_details and populated the value in the os-vif network object.
3.) since neutron requires all bridges to be of the same datapath type
so that patch ports will work we can list the active datapath types using ovs-appctl.
if only one datapath type is active then that is the type that should be used for the bridge.
if both datapaths are active we could raise an exception and refuse to plug the interface or make a best effort guess.