From 6b14abc06ff2fc4e9218dea384a705ed51915ef3 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 7 Jul 2024 19:08:12 +0200 Subject: [PATCH] Add allow_unsafe_options for Qemu settings --- gns3server/api/routes/controller/projects.py | 2 ++ gns3server/schemas/config.py | 1 + 2 files changed, 3 insertions(+) diff --git a/gns3server/api/routes/controller/projects.py b/gns3server/api/routes/controller/projects.py index 433832a8..fa088534 100644 --- a/gns3server/api/routes/controller/projects.py +++ b/gns3server/api/routes/controller/projects.py @@ -320,6 +320,7 @@ async def export_project( include_snapshots: bool = False, include_images: bool = False, reset_mac_addresses: bool = False, + keep_compute_ids: bool = False, compression: schemas.ProjectCompression = "zstd", compression_level: int = None, ) -> StreamingResponse: @@ -366,6 +367,7 @@ async def export_project( tmpdir, include_snapshots=include_snapshots, include_images=include_images, + keep_compute_ids=keep_compute_ids, reset_mac_addresses=reset_mac_addresses, ) async for chunk in zstream: diff --git a/gns3server/schemas/config.py b/gns3server/schemas/config.py index 6e57aef8..3bc7a027 100644 --- a/gns3server/schemas/config.py +++ b/gns3server/schemas/config.py @@ -69,6 +69,7 @@ class QemuSettings(BaseModel): monitor_host: str = "127.0.0.1" enable_hardware_acceleration: bool = True require_hardware_acceleration: bool = False + allow_unsafe_options: bool = False model_config = ConfigDict(validate_assignment=True, str_strip_whitespace=True)