Add rbac_policy to quota resources
Allow updating the quota for rbac policies. Change-Id: Ia14efb844fa6dd4127840408a03cb54f16d78b35 Closes-Bug: #1631231
This commit is contained in:
@@ -192,6 +192,9 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--listener', metavar='listeners',
|
'--listener', metavar='listeners',
|
||||||
help=_('The limit of listeners.'))
|
help=_('The limit of listeners.'))
|
||||||
|
parser.add_argument(
|
||||||
|
'--rbac-policy', metavar='rbac_policies',
|
||||||
|
help=_('The limit of RBAC policies.'))
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'pos_tenant_id',
|
'pos_tenant_id',
|
||||||
help=argparse.SUPPRESS, nargs='?')
|
help=argparse.SUPPRESS, nargs='?')
|
||||||
@@ -212,7 +215,7 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
|
|||||||
for resource in ('network', 'subnet', 'port', 'router', 'floatingip',
|
for resource in ('network', 'subnet', 'port', 'router', 'floatingip',
|
||||||
'security_group', 'security_group_rule',
|
'security_group', 'security_group_rule',
|
||||||
'vip', 'pool', 'member', 'healthmonitor',
|
'vip', 'pool', 'member', 'healthmonitor',
|
||||||
'loadbalancer', 'listener'):
|
'loadbalancer', 'listener', 'rbac_policy'):
|
||||||
if getattr(parsed_args, resource):
|
if getattr(parsed_args, resource):
|
||||||
quota[resource] = self._validate_int(
|
quota[resource] = self._validate_int(
|
||||||
resource,
|
resource,
|
||||||
|
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Quota for RBAC policies can now be set.
|
Reference in New Issue
Block a user