]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Register LBaaS resources to quotas engine
authorEvgeny Fedoruk <evgenyf@radware.com>
Thu, 10 Apr 2014 15:01:19 +0000 (08:01 -0700)
committerEvgeny Fedoruk <evgenyf@radware.com>
Thu, 10 Apr 2014 15:07:53 +0000 (08:07 -0700)
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

neutron/extensions/loadbalancer.py

index 80a1d45a9bd925ddf38acc7f95a879d83b9ae225..536bff5abdfbb4080e40f87f27839c9b87542419 100644 (file)
@@ -351,7 +351,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: