neutron/neutron/quota
Rodolfo Alonso Hernandez bd60f0833b Implement specific tracked resource count method per quota driver
This patch implements a new method specific for each quota driver
class. This method, "get_resource_count", returns the current number
of resources created in a project of a tracked resource. A tracked
resource is an instance of ``neutron.quota.resource.TrackedResource``.
This method does not count the current reservations, just the actual
resources created.

This new method, "get_resource_count", will be added to the abstract
class ``neutron_lib.db.quota_api.QuotaDriverAPI``.

This patch also fixes ``TestDbQuotaDriverNoLock``, that was using a
plugin inheriting from ``DbQuotaDriver`` instead of
``DbQuotaNoLockDriver``.

Closes-Bug: #1982962

Change-Id: I2707506468cb60d93a4459ea364f1e79faa83838
2022-07-28 06:01:18 +02:00
..
__init__.py [quota] Enable ``DbQuotaDriverNull`` as a production driver 2022-04-05 10:10:46 +00:00
resource.py Implement specific tracked resource count method per quota driver 2022-07-28 06:01:18 +02:00
resource_registry.py Remove "six" library 2020-07-28 16:55:52 +00:00