Skip to content

Commit 0f6f187

Browse files
committed
feat(neutron-understack): move the config initialization out of global
Upstream mechanisms don't initialize the config options in the global scope and this appears to cause issues in a 2025.2 world so follow how upstream behaves.
1 parent 194e966 commit 0f6f187

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/neutron-understack/neutron_understack/neutron_understack_mech.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
LOG = logging.getLogger(__name__)
2424

25-
config.register_ml2_understack_opts(cfg.CONF)
26-
2725

2826
SUPPORTED_VNIC_TYPES = [portbindings.VNIC_BAREMETAL, portbindings.VNIC_NORMAL]
2927

@@ -37,6 +35,7 @@ def connectivity(self): # type: ignore
3735
return portbindings.CONNECTIVITY_L2
3836

3937
def initialize(self):
38+
config.register_ml2_understack_opts(cfg.CONF)
4039
conf = cfg.CONF.ml2_understack
4140
self.undersync = Undersync(conf.undersync_token, conf.undersync_url)
4241
self.ironic_client = IronicClient()

0 commit comments

Comments
 (0)