Fix Quota Support for HMs

Health Monitors could not be updated using
the `neutron quota-update` CLI.

This patch fixes the same.

Change-Id: Ie9eefcd9042f3d09b3ba88a9bd195463302dd5c0
Closes-Bug: #1624225
This commit is contained in:
Reedip
2016-09-16 12:37:57 +05:30
parent 33b8a0cf0b
commit d8df6002d7

View File

@@ -184,6 +184,7 @@ class UpdateQuota(neutronV20.NeutronCommand, show.ShowOne):
help=_('The limit of pool members.'))
parser.add_argument(
'--health-monitor', metavar='health_monitors',
dest='healthmonitor',
help=_('The limit of health monitors.'))
parser.add_argument(
'--loadbalancer', metavar='loadbalancers',
@@ -210,7 +211,7 @@ 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', 'healthmonitor',
'loadbalancer', 'listener'):
if getattr(parsed_args, resource):
quota[resource] = self._validate_int(