Add missing managed flag for hostdev
This commit is contained in:
parent
24ce361a04
commit
b532bc9104
|
@ -567,7 +567,7 @@ def vm_networks_add(config, vm, network, macaddr, model, sriov, sriov_mode, rest
|
||||||
pci_slot=sriov_vf_information['pci']['slot'],
|
pci_slot=sriov_vf_information['pci']['slot'],
|
||||||
pci_function=sriov_vf_information['pci']['function'],
|
pci_function=sriov_vf_information['pci']['function'],
|
||||||
)
|
)
|
||||||
device_string = '<interface type="hostdev"><mac address="{macaddr}"/><source><address type="pci" {bus_address}/></source><sriov_device>{network}</sriov_device></interface>'.format(
|
device_string = '<interface type="hostdev" managed="yes"><mac address="{macaddr}"/><source><address type="pci" {bus_address}/></source><sriov_device>{network}</sriov_device></interface>'.format(
|
||||||
macaddr=macaddr,
|
macaddr=macaddr,
|
||||||
bus_address=bus_address,
|
bus_address=bus_address,
|
||||||
network=network
|
network=network
|
||||||
|
|
Loading…
Reference in New Issue