neutron/neutron/tests
Rodolfo Alonso Hernandez ca96555e81 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

Conflicts:
  neutron/db/quota/driver_null.py

Change-Id: I2707506468cb60d93a4459ea364f1e79faa83838
(cherry picked from commit bd60f0833b)
2022-07-28 21:54:01 +02:00
..
common Make sure "dead vlan" ports cannot transmit packets 2022-02-04 16:43:03 +03:00
contrib Add "quota-check-limit" extension to OVN extension list 2021-11-26 09:50:26 +00:00
etc Convert policy.json into policy-in-code 2018-12-13 20:37:53 +00:00
fullstack Add "max-rate" value to minimum bandwidth rules 2022-05-19 02:44:37 +00:00
functional Merge "[ovn]support read chassis update time from nb_cfg_timestamp" into stable/yoga 2022-07-04 08:52:24 +00:00
unit Implement specific tracked resource count method per quota driver 2022-07-28 21:54:01 +02:00
var
__init__.py
base.py Revert "Cache default security group IDs in memory" 2021-04-12 15:24:42 +00:00
post_mortem_debug.py
tools.py Add API extension for QoS minimum pps rule 2021-09-29 12:27:30 +02:00