Update the pci config for nova.
Add the possibility to set pci alias. Depends-On: Ib523de857a5de9adc86bd90fe6919af17704192f Change-Id: Id4872caed2cba6b2ef31e850cde63a2a88d55250
This commit is contained in:
parent
18bc36cd84
commit
6bc12e3c86
@ -632,3 +632,9 @@ lxd_storage_backend: dir
|
||||
# Example:
|
||||
# nova_pci_passthrough_whitelist: '{ "physical_network": "physnet1", "devname": "p1p1" }'
|
||||
nova_pci_passthrough_whitelist: {}
|
||||
# PCI alias,
|
||||
# Example:
|
||||
# nova_pci_alias:
|
||||
# - '{ "name": "card-alias1", "product_id": "XXXX", "vendor_id": "XXXX" }'
|
||||
# - '{ "name": "card-alias2", "product_id": "XXXY", "vendor_id": "XXXY" }'
|
||||
nova_pci_alias: []
|
||||
|
@ -346,8 +346,16 @@ compute=auto
|
||||
enabled_vgpu_types = {{ enabled_vgpu_types | join(',') }}
|
||||
{% endif %}
|
||||
|
||||
{% if nova_pci_passthrough_whitelist %}
|
||||
{% if nova_pci_passthrough_whitelist or nova_pci_alias %}
|
||||
[pci]
|
||||
{% if nova_pci_passthrough_whitelist %}
|
||||
# White list of PCI devices available to VMs.
|
||||
passthrough_whitelist = "{{ nova_pci_passthrough_whitelist }}"
|
||||
{% endif %}
|
||||
{% if nova_pci_alias %}
|
||||
# PCI Alias
|
||||
{% for item in nova_pci_alias %}
|
||||
alias = "{{item}}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user