diff options
| author | Akihiro MOTOKI <motoki@da.jp.nec.com> | 2012-12-03 20:10:38 +0900 |
|---|---|---|
| committer | Akihiro MOTOKI <motoki@da.jp.nec.com> | 2012-12-03 20:15:44 +0900 |
| commit | 45c471899ba30b7db970b27976f749a16a2fdb92 (patch) | |
| tree | cead35ebcad9739d898250fbbe45623abfec8291 /quantumclient/quantum | |
| parent | f6dcfd855bd6928c37fb511bb22a288e910fba82 (diff) | |
| download | python-neutronclient-45c471899ba30b7db970b27976f749a16a2fdb92.tar.gz | |
Add --router and --floatingip to quota-update options.
Fixes bug 1085820
Change-Id: I333b21414ec159cbf8474d47bd8ba3c6bd3cf8ad
Diffstat (limited to 'quantumclient/quantum')
| -rw-r--r-- | quantumclient/quantum/v2_0/quota.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/quantumclient/quantum/v2_0/quota.py b/quantumclient/quantum/v2_0/quota.py index 2a6979c..0e74949 100644 --- a/quantumclient/quantum/v2_0/quota.py +++ b/quantumclient/quantum/v2_0/quota.py @@ -164,6 +164,12 @@ class UpdateQuota(QuantumCommand, show.ShowOne): parser.add_argument( '--port', metavar='ports', help='the limit of port quota') + parser.add_argument( + '--router', metavar='routers', + help='the limit of router quota') + parser.add_argument( + '--floatingip', metavar='floatingips', + help='the limit of floating IP quota') quantumv20.add_extra_argument( parser, 'value_specs', 'new values for the %s' % self.resource) @@ -183,7 +189,7 @@ class UpdateQuota(QuantumCommand, show.ShowOne): quantum_client = self.get_client() quantum_client.format = parsed_args.request_format quota = {} - for resource in ('network', 'subnet', 'port'): + for resource in ('network', 'subnet', 'port', 'router', 'floatingip'): if getattr(parsed_args, resource): quota[resource] = self._validate_int( resource, |
