neutron/neutron/cmd
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
..
eventlet Don't register config options on imports 2022-04-13 05:49:15 +00:00
ovn Don't register config options on imports 2022-04-13 05:49:15 +00:00
sanity [OVN] Check if OVN SB supports virtual ports 2022-01-13 04:08:18 +00:00
upgrade_checks Add upgrade check for extra DHCP options 2022-01-13 20:40:42 +01:00
__init__.py Fix logging error for Guru Meditation Report 2016-02-08 16:52:17 -08:00
destroy_patch_ports.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
ipset_cleanup.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
keepalived_state_change.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
linuxbridge_cleanup.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
netns_cleanup.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
ovs_cleanup.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
pd_notify.py Fix pylint R1714 (consider-using-in) refactor messages 2019-02-21 21:11:34 +00:00
runtime_checks.py keepalived "no_track" implemented in version 2.0.3 2022-01-10 11:50:35 +00:00
sanitize_port_binding_profile_allocation.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
sanitize_port_mac_addresses.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
sanity_check.py Don't register config options on imports 2022-04-13 05:49:15 +00:00
status.py Don't register config options on imports 2022-04-13 05:49:15 +00:00