From 2bb26075f0bb385b8e29d0db22479f7e425ae8a2 Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 5 Aug 2024 17:51:46 +0200 Subject: [PATCH] Forbid -nic and -nicdev in Qemu additional options. Fixes https://github.com/GNS3/gns3-server/issues/2397 --- gns3server/compute/qemu/qemu_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index 681c4d86..99b2d711 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -55,7 +55,7 @@ log = logging.getLogger(__name__) # forbidden additional options FORBIDDEN_OPTIONS = {"-blockdev", "-drive", "-hda", "-hdb", "-hdc", "-hdd", - "-fsdev", "-virtfs"} + "-fsdev", "-virtfs", "-nic", "-netdev"} FORBIDDEN_OPTIONS |= {"-" + opt for opt in FORBIDDEN_OPTIONS if opt.startswith("-") and not opt.startswith("--")}