qemu : with network adapter_type equal to "virtio-net-pci", fix the speed to 10000 and duplex to full.

The values are actually fake.
	(https://github.com/GNS3/gns3-gui/issues/3476)
pull/2235/head
Raizo62 12 months ago
parent 088ae699de
commit 0b6436d2cb

@ -2150,6 +2150,8 @@ class QemuVM(BaseNode):
else:
# newer QEMU networking syntax
device_string = "{},mac={}".format(adapter_type, mac)
if adapter_type == "virtio-net-pci":
device_string = "{},speed=10000,duplex=full".format(device_string)
bridge_id = math.floor(pci_device_id / 32)
if bridge_id > 0:
if pci_bridges_created < bridge_id:

Loading…
Cancel
Save