configure packet queues on nics

This commit is contained in:
Roman Tomjak 2020-07-16 17:56:58 +01:00
parent a65157a91b
commit d3d7cc3e59
No known key found for this signature in database
GPG Key ID: BB29BA0B3501D719
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,10 @@ func generateProxmoxNetworkAdapters(nics []nicConfig) proxmox.QemuDevices {
setDeviceParamIfDefined(devs[idx], "bridge", nics[idx].Bridge)
setDeviceParamIfDefined(devs[idx], "tag", nics[idx].VLANTag)
setDeviceParamIfDefined(devs[idx], "firewall", strconv.FormatBool(nics[idx].Firewall))
if nics[idx].PacketQueues > 0 {
devs[idx]["queues"] = nics[idx].PacketQueues
}
}
return devs
}