Browse Source

Filter supported extension for OVN mech driver

OVN mechanism driver has support for  a defined set of ML2 API
extensions. When the ML2Plugin is loaded, the OVN mechanism driver
will return, from the loaded plugin extensions, only the supported
subset.

Change-Id: Id23aa1c107504d47b08007752159b07f089c3090
Related-Bug: #1888829
changes/99/743799/6
Rodolfo Alonso Hernandez 1 year ago
parent
commit
ebb866310b
  1. 4
      neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py

4
neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py

@ -41,6 +41,7 @@ from ovsdbapp.backend.ovs_idl import idlutils
from neutron._i18n import _
from neutron.common.ovn import acl as ovn_acl
from neutron.common.ovn import constants as ovn_const
from neutron.common.ovn import extensions as ovn_extensions
from neutron.common.ovn import utils as ovn_utils
from neutron.common import utils as n_utils
from neutron.conf.plugins.ml2.drivers.ovn import ovn_conf
@ -170,6 +171,9 @@ class OVNMechanismDriver(api.MechanismDriver):
portbindings.CONNECTIVITY_L2,
}
def supported_extensions(self, extensions):
return set(ovn_extensions.ML2_SUPPORTED_API_EXTENSIONS) & extensions
def subscribe(self):
registry.subscribe(self.pre_fork_initialize,
resources.PROCESS,

Loading…
Cancel
Save