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:
1 changed files with 2 additions and 1 deletions
@@ -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
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.