Merge "Change how ovn mech driver checks if vlan transparency is supported"

This commit is contained in:
Zuul 2021-02-03 19:32:48 +00:00 committed by Gerrit Code Review
commit 07aa04b955
1 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import types
import netaddr
from neutron_lib.api.definitions import portbindings
from neutron_lib.api.definitions import provider_net
from neutron_lib.api.definitions import segment as segment_def
from neutron_lib.callbacks import events
from neutron_lib.callbacks import registry
@ -162,7 +163,14 @@ class OVNMechanismDriver(api.MechanismDriver):
def check_vlan_transparency(self, context):
"""OVN driver vlan transparency support."""
return True
vlan_transparency_network_types = [
const.TYPE_LOCAL,
const.TYPE_GENEVE,
const.TYPE_VXLAN,
const.TYPE_VLAN
]
return (context.current.get(provider_net.NETWORK_TYPE)
in vlan_transparency_network_types)
def _setup_vif_port_bindings(self):
self.supported_vnic_types = [portbindings.VNIC_NORMAL,