mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-19 03:06:32 +00:00
Fixes NAT NIO for Qemu VMs (do not launch any legacy scripts)
This commit is contained in:
parent
a16d6ac88f
commit
98112f7fac
@ -1337,7 +1337,7 @@ class QemuVM(BaseVM):
|
|||||||
self._host,
|
self._host,
|
||||||
nio.lport)])
|
nio.lport)])
|
||||||
elif isinstance(nio, NIOTAP):
|
elif isinstance(nio, NIOTAP):
|
||||||
network_options.extend(["-netdev", "tap,id=gns3-{},ifname={}".format(adapter_number, nio.tap_device)])
|
network_options.extend(["-netdev", "tap,id=gns3-{},ifname={},script=no,downscript=no".format(adapter_number, nio.tap_device)])
|
||||||
elif isinstance(nio, NIONAT):
|
elif isinstance(nio, NIONAT):
|
||||||
network_options.extend(["-netdev", "user,id=gns3-{}".format(adapter_number)])
|
network_options.extend(["-netdev", "user,id=gns3-{}".format(adapter_number)])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user