neutron/neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/extension_drivers
Rodolfo Alonso Hernandez 83d7eb961d Add OVS QoS driver cache for minimum bandwidth rules
1. Add OVS QoS driver cache
Added minimum bandwidth rules cache in the OVS QoS driver. If a new
port is detected in the integration bridge, managed by the OVS agent
driver, the QoS extension is applied (if configured).

If this new port does not have a QoS rule, by default the QoS
configuration is reset in this port. Because this port has no Queue
related, the call "QosOVSAgentDriver.delete_minimum_bandwidth" should
not execute the rule cleanup.

This QoS rule cache implementation per porti is currently used in the
OVS QoS driver for the DSCP and the bandwitdh limit rules.

2. If a Queue cannot be deleted, log the QoS registers using it
If a Queue is still used in a QoS register in the OVSDB, it cannot
be deleted. With the current design, only one QoS rule is created in
the database and several Queues are assigned to it.

If something external to the OVS agent is handling the Queues and by
mistake a Queue is assigned to other QoS registers, this error is now
logged before raising the exception.

Closes-Bug: #1845176
Change-Id: Ia9077fc20e4ca360819a2e368c8c1f9250e5a6d8
2020-01-07 14:40:28 +00:00
..
__init__.py Add unit tests and fixes for OVS Agent QoS Extension Driver 2015-07-15 15:23:59 +03:00
test_qos_driver.py Add OVS QoS driver cache for minimum bandwidth rules 2020-01-07 14:40:28 +00:00