mirror of
https://github.com/GNS3/gns3-server
synced 2025-04-28 13:29:01 +00:00
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)
This commit is contained in:
parent
088ae699de
commit
0b6436d2cb
@ -2150,6 +2150,8 @@ class QemuVM(BaseNode):
|
|||||||
else:
|
else:
|
||||||
# newer QEMU networking syntax
|
# newer QEMU networking syntax
|
||||||
device_string = "{},mac={}".format(adapter_type, mac)
|
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)
|
bridge_id = math.floor(pci_device_id / 32)
|
||||||
if bridge_id > 0:
|
if bridge_id > 0:
|
||||||
if pci_bridges_created < bridge_id:
|
if pci_bridges_created < bridge_id:
|
||||||
|
Loading…
Reference in New Issue
Block a user