Add quota support for LB and Listeners
This patch adds support for quota update of Loadbalancers and Listeners. Change-Id: I94c0e0898dff18fbadf1c24b5555dd497e9bf640 Closes-Bug: #1559027
This commit is contained in:
parent
ec20f7f85c
commit
310a6ece52
@ -184,6 +184,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='?')
|
||||
@ -203,7 +209,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…
x
Reference in New Issue
Block a user