neutron/neutron/db/qos
Rodolfo Alonso Hernandez 8b00349a63 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
2019-07-05 08:10:01 +00:00
..
__init__.py QoS: db models and migration rules 2015-07-01 14:24:38 +03:00
models.py Refactor qos_plugin._extend_port_resource_request 2019-07-05 08:10:01 +00:00