charm-neutron-openvswitch/templates/mitaka/interfaces.yaml
Frode Nordahl a88259a768 SR-IOV: match on PCI address, don't do runtime config
Replace in-charm SR-IOV code with the common ``SRIOVContext``

Do not do run-time configuration of SR-IOV or hardware adaption
for hardware offload. In addition to being detrimental to any
virtual machine instance consuming the VF this will break NIC
firmware in some configurations.

The task is delegated to the installed packages and their systemd
services and configuration will occur at system bootup time.

We may consider adding an action to perform the configuration at
run-time if the operator really wants to, but it is very
complicated to get right. For example if you are using bonding
and hardware offload the virtual functions and hardware specific
setup has to happen _BEFORE_ netplan applies network configuration
to the system.

Closes-Bug: #1908351
Change-Id: Id0b81848658a3bd34470440bd68928ae9f6682e4
2021-02-16 11:45:53 +01:00

8 lines
225 B
YAML

interfaces:
{% for _, pcidnvfs in sriov_device.get_map.items() -%}
{{ pcidnvfs.device.interface_name }}:
match:
pciaddress: '{{ pcidnvfs.device.pci_address }}'
num_vfs: {{ pcidnvfs.numvfs }}
{% endfor -%}