neutron/neutron/tests/unit/services/qos
Rodolfo Alonso Hernandez 1229be91d9 Refactor qos_plugin._extend_port_resource_request
In order to speed up the port collection, some DB calls
have been deleted in the extended function
"QoSPlugin._extend_port_resource_request".

With the parent commit, the port DB/OVO object now has the
network QoS policy ID, making the network retrieval unneeded.

In this refactor the QoS policy is collected from the DB only
if a valid QoS policy ID exists, bound to the port or to the
network. This reduces the number of QoS objects collection to
one or zero.

Change-Id: Iadf704c00378da99c502dca3e3b79796c368cac7
Closes-Bug: #1834484
(cherry picked from commit 8b00349a63)
2019-07-05 16:39:11 +00:00
..
drivers remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
__init__.py Handle qos_policy on network/port create/update 2015-07-19 08:33:04 +02:00
base.py Base on SqlTestCase to init db tables correctly 2015-08-28 07:57:48 +02:00
test_qos_plugin.py Refactor qos_plugin._extend_port_resource_request 2019-07-05 16:39:11 +00:00