From b4e45ff003941d1d1b2327ed7121bec8071a252b Mon Sep 17 00:00:00 2001 From: Antoni Segura Puimedon Date: Wed, 20 Dec 2017 16:39:31 +0100 Subject: [PATCH] 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 --- shade/openstackcloud.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shade/openstackcloud.py b/shade/openstackcloud.py index 687ca2e1d..2c41bdb18 100644 --- a/shade/openstackcloud.py +++ b/shade/openstackcloud.py @@ -11354,6 +11354,13 @@ class OpenStackCloud( "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