Register LBaaS resources to quotas engine

Adding register_quotas=True argument to
resource_helper.build_resource_info() function
in order to register LBaaS resources to quotas engine

This change is actually a continuation of https://review.openstack.org/#/c/69803
change which was already approved

Change-Id: Ib75027ce4a1bea3d453f57b107d29546ec6743e5
Closes-Bug: #1305957
(cherry picked from commit f5d33051b6)
This commit is contained in:
Evgeny Fedoruk 2014-04-10 08:01:19 -07:00 committed by afazekas
parent 98bb06e4c5
commit fb40f658f0
1 changed files with 2 additions and 1 deletions

View File

@ -353,7 +353,8 @@ class Loadbalancer(extensions.ExtensionDescriptor):
resources = resource_helper.build_resource_info(plural_mappings,
RESOURCE_ATTRIBUTE_MAP,
constants.LOADBALANCER,
action_map=action_map)
action_map=action_map,
register_quota=True)
plugin = manager.NeutronManager.get_service_plugins()[
constants.LOADBALANCER]
for collection_name in SUB_RESOURCE_ATTRIBUTE_MAP: