summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-02-03 15:53:02 +0000
committerGerrit Code Review <review@openstack.org>2022-02-03 15:53:02 +0000
commite000fd5f0d213fdcb845982a7e173ce4238564de (patch)
tree3daedd9c980c3288a675ed7577e25b498af45818 /openstackclient/common
parent746b91335cd7f1796883e4719e544a8b82958a82 (diff)
parentbef70397a3e1240cc593b3fb34049f2ff6601e68 (diff)
downloadpython-openstackclient-e000fd5f0d213fdcb845982a7e173ce4238564de.tar.gz
Merge "Add network update quota "limit_check" parameter"
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/quota.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py
index 643cb4e4..677cba03 100644
--- a/openstackclient/common/quota.py
+++ b/openstackclient/common/quota.py
@@ -535,6 +535,12 @@ class SetQuota(common.NetDetectionMixin, command.Command):
action='store_true',
help=_('Force quota update (only supported by compute)')
)
+ parser.add_argument(
+ '--check-limit',
+ action='store_true',
+ help=_('Check quota limit when updating (only supported by '
+ 'network)')
+ )
return parser
def take_action(self, parsed_args):
@@ -561,6 +567,9 @@ class SetQuota(common.NetDetectionMixin, command.Command):
volume_kwargs[k] = value
network_kwargs = {}
+ if parsed_args.check_limit:
+ network_kwargs['check_limit'] = True
+
if self.app.client_manager.is_network_endpoint_enabled():
for k, v in NETWORK_QUOTAS.items():
value = getattr(parsed_args, k, None)