diff --git a/neutron_lib/plugins/ml2/api.py b/neutron_lib/plugins/ml2/api.py index f9b40f2ab..dfb267d7c 100644 --- a/neutron_lib/plugins/ml2/api.py +++ b/neutron_lib/plugins/ml2/api.py @@ -1037,6 +1037,16 @@ class ExtensionDriver(object): """ pass + @property + def extension_aliases(self): + """List of extension aliases supported by the driver. + + Return a list of aliases identifying the core API extensions + supported by the driver. By default this just returns the + extension_alias property for backwards compatibility. + """ + return [self.extension_alias] + def process_create_network(self, plugin_context, data, result): """Process extended attributes for create network. diff --git a/releasenotes/notes/rehome-ml2-api-extaliases-4db48e113893c7a5.yaml b/releasenotes/notes/rehome-ml2-api-extaliases-4db48e113893c7a5.yaml new file mode 100644 index 000000000..f72b5ecc7 --- /dev/null +++ b/releasenotes/notes/rehome-ml2-api-extaliases-4db48e113893c7a5.yaml @@ -0,0 +1,5 @@ +--- +features: + - The ``ExtensionDriver`` class in ``neutron_lib.plugins.ml2.api`` now + contains the ``extension_aliases`` property to match neutron's + implementation.