neutron/neutron/common
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
..
ovn Merge "[OVN] Reschedule router GW chassis when AZ updated" 2022-03-25 18:50:54 +00:00
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
_constants.py Reduce iptables version check from 1.6.2 to 1.6.0 2021-12-21 22:31:18 +01:00
_deprecate.py Fix flake8 N534 untranslated exception message 2018-10-19 15:46:04 -04:00
cache_utils.py Fix return correct cache when reusing port 2020-03-27 16:48:57 +04:00
config.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
coordination.py Remove usage of six.PY2 2020-05-22 12:59:01 -04:00
eventlet_utils.py Bump pylint version to support python 3.8 2020-08-06 16:00:30 +02:00
ipv6_utils.py Adding check for IPv6 address in setup_controllers 2019-10-29 15:10:25 +00:00
profiler.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
test_lib.py Revert "Removed test_lib module" 2015-06-29 08:27:41 +00:00
utils.py Refactor session "is_active" handling for sqlalchemy-20 2022-02-10 09:03:36 +00:00