From 179128cf8f49db6650459c7d41528d5c70669476 Mon Sep 17 00:00:00 2001 From: Marek Skrobacki Date: Wed, 11 Dec 2024 17:35:56 +0000 Subject: [PATCH] neutron l3: fix the method signatures Mostly change the get_plugin_type() to be a classmethod --- .../neutron_understack/l3_service_plugin.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/python/neutron-understack/neutron_understack/l3_service_plugin.py b/python/neutron-understack/neutron_understack/l3_service_plugin.py index eb4df9ed9..d0609c941 100644 --- a/python/neutron-understack/neutron_understack/l3_service_plugin.py +++ b/python/neutron-understack/neutron_understack/l3_service_plugin.py @@ -25,14 +25,13 @@ def print_post_commit_data(method: str, data: dict) -> None: class UnderStackL3ServicePlugin(L3RouterPlugin): - def __init__(self): - """Understack L3 plugin. + """Understack L3 plugin. - L3 plugin to deal with Understack infrastructure. - """ - super().__init__() + L3 plugin to deal with Understack infrastructure. + """ - def get_plugin_type(self): + @classmethod + def get_plugin_type(cls): return "L3_ROUTER_NAT" def get_plugin_description(self):