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:
@@ -184,6 +184,12 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--health-monitor', metavar='health_monitors',
|
'--health-monitor', metavar='health_monitors',
|
||||||
help=_('The limit of 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(
|
parser.add_argument(
|
||||||
'pos_tenant_id',
|
'pos_tenant_id',
|
||||||
help=argparse.SUPPRESS, nargs='?')
|
help=argparse.SUPPRESS, nargs='?')
|
||||||
@@ -203,7 +209,8 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
|
|||||||
quota = {}
|
quota = {}
|
||||||
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', 'health_monitor'):
|
'vip', 'pool', 'member', 'health_monitor',
|
||||||
|
'loadbalancer', 'listener'):
|
||||||
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 of Loadbalancers and listeners can now be updated.
|
Reference in New Issue
Block a user