Fix QoS selection for SRIOV environments

When QoS is set in the neutron-api charm, the neutron-openvswitch
charm needs to add 'extensions = qos' to the sriov_agent.ini
file.

Closes-bug: #1938277
Change-Id: I44fbf5991d2606161b1bcbc064d4bc68a2fbbb5b
(cherry picked from commit 2a6cba8e6f)
This commit is contained in:
Erlon R. Cruz 2021-08-03 15:17:52 -03:00
parent 1d4f077e11
commit 561a44e948
2 changed files with 7 additions and 1 deletions

View File

@ -246,7 +246,8 @@ DPDK_RESOURCE_MAP = OrderedDict([
SRIOV_RESOURCE_MAP = OrderedDict([
(NEUTRON_SRIOV_AGENT_CONF, {
'services': ['neutron-sriov-agent'],
'contexts': [neutron_ovs_context.OVSPluginContext()],
'contexts': [neutron_ovs_context.OVSPluginContext(),
context.NeutronAPIContext()],
}),
])

View File

@ -9,3 +9,8 @@ firewall_driver = neutron.agent.firewall.NoopFirewallDriver
[sriov_nic]
physical_device_mappings = {{ sriov_device_mappings }}
exclude_devices =
{% if enable_sriov and enable_qos -%}
[agent]
extensions = qos
{% endif -%}