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
OpenStack Neutron
Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).
To learn more about neutron:
- Documentation: https://docs.openstack.org/neutron/latest/
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
- Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
- Source: https://opendev.org/openstack/neutron
If you would like to contribute to Neutron, please read the file CONTRIBUTING.rst or see the Neutron contributor guide:
https://docs.openstack.org/neutron/latest/contributor/contributing.html
Get in touch via email. Use [Neutron] in your subject.
Description
Languages
Python
99.7%
Shell
0.3%