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:
reedip 2016-03-22 17:57:49 +09:00 committed by Reedip
parent ec20f7f85c
commit 310a6ece52
2 changed files with 12 additions and 1 deletions

View File

@ -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,

View File

@ -0,0 +1,4 @@
---
features:
- |
Quota of Loadbalancers and listeners can now be updated.