mirror of
https://opendev.org/openstack/python-neutronclient.git
synced 2026-01-17 07:23:43 +00:00
Merge "Add quota support for LB and Listeners"
This commit is contained in:
commit
618bc69660
2 changed files with 12 additions and 1 deletions
|
|
@ -185,6 +185,12 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
|
|||
parser.add_argument(
|
||||
'--health-monitor', metavar='health_monitors',
|
||||
help=_('The limit of health monitors.'))
|
||||
parser.add_argument(
|
||||
'--loadbalancer', metavar='loadbalancers',
|
||||
help=_('The limit of load balancers.'))
|
||||
parser.add_argument(
|
||||
'--listener', metavar='listeners',
|
||||
help=_('The limit of listeners.'))
|
||||
parser.add_argument(
|
||||
'pos_tenant_id',
|
||||
help=argparse.SUPPRESS, nargs='?')
|
||||
|
|
@ -204,7 +210,8 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
|
|||
quota = {}
|
||||
for resource in ('network', 'subnet', 'port', 'router', 'floatingip',
|
||||
'security_group', 'security_group_rule',
|
||||
'vip', 'pool', 'member', 'health_monitor'):
|
||||
'vip', 'pool', 'member', 'health_monitor',
|
||||
'loadbalancer', 'listener'):
|
||||
if getattr(parsed_args, resource):
|
||||
quota[resource] = self._validate_int(
|
||||
resource,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Quota of Loadbalancers and listeners can now be updated.
|
||||
Loading…
Add table
Reference in a new issue