Merge "Add rbac_policy to quota resources"

This commit is contained in:
Jenkins 2016-12-23 15:15:54 +00:00 committed by Gerrit Code Review
commit cf9d5e4025
2 changed files with 8 additions and 1 deletions

View File

@ -192,6 +192,9 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
parser.add_argument(
'--listener', metavar='listeners',
help=_('The limit of listeners.'))
parser.add_argument(
'--rbac-policy', metavar='rbac_policies',
help=_('The limit of RBAC policies.'))
parser.add_argument(
'pos_tenant_id',
help=argparse.SUPPRESS, nargs='?')
@ -212,7 +215,7 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
for resource in ('network', 'subnet', 'port', 'router', 'floatingip',
'security_group', 'security_group_rule',
'vip', 'pool', 'member', 'healthmonitor',
'loadbalancer', 'listener'):
'loadbalancer', 'listener', 'rbac_policy'):
if getattr(parsed_args, resource):
quota[resource] = self._validate_int(
resource,

View File

@ -0,0 +1,4 @@
---
features:
- |
Quota for RBAC policies can now be set.