Set service type when registering provider config

When registering the provider configuration with the service type
manager we need to specify a service type for ProviderConfiguration(),
as described in the Neutron Contributors documentation[0]. If this is
not done it might lead to duplicate service providers configuration, as
the ProviderConfiguration no longer filters out other services.
[0] https://docs.openstack.org/neutron/latest/contributor/contribute.html#service-providers
Change-Id: I90deb35bb6ed843aa132171907c9efe2a09fee99
This commit is contained in:
Sebastian Lohff
2025年05月16日 18:59:17 +02:00
parent 1044a82287
commit 000191eba8

View File

@@ -56,7 +56,8 @@ class BGPVPNPlugin(bgpvpn.BGPVPNPluginBase,
service_type_manager = st_db.ServiceTypeManager.get_instance()
service_type_manager.add_provider_configuration(
SERVICE_PROVIDER_TYPE,
pconf.ProviderConfiguration('networking_bgpvpn'))
pconf.ProviderConfiguration('networking_bgpvpn',
SERVICE_PROVIDER_TYPE))
# Load the default driver
drivers, default_provider = service_base.load_drivers(
Reference in New Issue
openstack/networking-bgpvpn
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.