Add rbac_policy to quota resources
Allow updating the quota for rbac policies. Change-Id: Ia14efb844fa6dd4127840408a03cb54f16d78b35 Closes-Bug: #1631231
This commit is contained in:
parent
0c92d1f955
commit
450c8670d9
@ -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,
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Quota for RBAC policies can now be set.
|
Loading…
x
Reference in New Issue
Block a user