From 0bc9541115a8bb87da0e77943653f74d1acc4a32 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Wed, 21 May 2025 13:40:18 +0200 Subject: [PATCH] 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: I16c474de7cc83d73e8ff5f255964b413b12cab8b --- neutron_vpnaas/services/vpn/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron_vpnaas/services/vpn/plugin.py b/neutron_vpnaas/services/vpn/plugin.py index 1d49bdad3..898309923 100644 --- a/neutron_vpnaas/services/vpn/plugin.py +++ b/neutron_vpnaas/services/vpn/plugin.py @@ -32,7 +32,7 @@ LOG = logging.getLogger(__name__) def add_provider_configuration(type_manager, service_type): type_manager.add_provider_configuration( service_type, - pconf.ProviderConfiguration('neutron_vpnaas')) + pconf.ProviderConfiguration('neutron_vpnaas', service_type)) class VPNPlugin(vpn_db.VPNPluginDb):