neutron/neutron/plugins/ml2/drivers/macvtap
Jakub Libosvar 4d3a274765 Don't register config options on imports
Importing some modules lead to registering config options that may
collide with config options from a project that calls the import. This
patch wraps the side effect that registers config options into a
function that needs to be called in case the caller wants to register
the options.

This solution is also not perfect as it guards the common options to be
registered only once even if the function is called multiple times. This
is to solve problems in unittests, ideally we should always call the
function just once even in our testing suites.

Resolves-Bug: #1968606
Change-Id: Ic1532eb8de887ff1b1085206df11f53e22f7f524
Signed-off-by: Jakub Libosvar <libosvar@redhat.com>
2022-04-13 05:49:15 +00:00
..
agent Don't register config options on imports 2022-04-13 05:49:15 +00:00
mech_driver Use the "connectivity" property of "MechanismDriver" 2022-02-11 05:43:44 +00:00
__init__.py macvtap: Common functions and constants 2016-02-12 09:27:24 +01:00
macvtap_common.py use plugin common utils from neutron-lib 2018-04-17 12:06:28 -06:00