diff options
author | reedip <reedip.banerjee@nectechnologies.in> | 2016-03-22 17:57:49 +0900 |
---|---|---|
committer | KRISHNA MOULI. TANKALA <krishna-mouli.tankala@hpe.com> | 2016-08-18 04:48:13 +0000 |
commit | 80a05bb43df8283dab752f45267cb9950cafb703 (patch) | |
tree | afaa5b4647d4e7cc3f5a24983abae33f624b6e72 | |
parent | 519caf7f1ed4d3c477d6f9a61d12b60f2c63a257 (diff) | |
download | python-neutronclient-80a05bb43df8283dab752f45267cb9950cafb703.tar.gz |
Add quota support for LB and Listeners
This patch adds support for quota update of
Loadbalancers and Listeners.
Change-Id: I94c0e0898dff18fbadf1c24b5555dd497e9bf640
Closes-Bug: #1559027
(cherry picked from commit 310a6ece52a94cf8fb31d10be73219b417f3938f)
-rw-r--r-- | neutronclient/neutron/v2_0/quota.py | 9 | ||||
-rw-r--r-- | releasenotes/notes/quota-update-for-LB-b21e7bc9e4a10f3e.yaml | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/neutronclient/neutron/v2_0/quota.py b/neutronclient/neutron/v2_0/quota.py index e7e74b1..3e8a9a8 100644 --- a/neutronclient/neutron/v2_0/quota.py +++ b/neutronclient/neutron/v2_0/quota.py @@ -185,6 +185,12 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne): '--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, diff --git a/releasenotes/notes/quota-update-for-LB-b21e7bc9e4a10f3e.yaml b/releasenotes/notes/quota-update-for-LB-b21e7bc9e4a10f3e.yaml new file mode 100644 index 0000000..9d6321d --- /dev/null +++ b/releasenotes/notes/quota-update-for-LB-b21e7bc9e4a10f3e.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Quota of Loadbalancers and listeners can now be updated. |