Add supported method for checking the network exts

It is useful for operators to be able to check if a cloud supports
certain extensions to know whether they can perform some API actions.

Change-Id: Ie99668173d4dc6e6b3992e496560b5b7598181a2
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
This commit is contained in:
Antoni Segura Puimedon 2017-12-20 16:39:31 +01:00 committed by Monty Taylor
parent ff23cd0681
commit 97827cdd3c
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -11373,6 +11373,13 @@ class OpenStackCloud(_normalize.Normalizer):
"project {0}".format(proj.id)))
return self._get_and_munchify('quota', data)
def get_network_extensions(self):
"""Get Cloud provided network extensions
:returns: set of Neutron extension aliases
"""
return self._neutron_extensions()
def delete_network_quotas(self, name_or_id):
""" Delete network quotas for a project