mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix tests after merge
This commit is contained in:
1 parent
27d9063e56
commit
72e3d8f0c1
5 files changed
+7
-5
No files matched your search
@@ -288,9 +288,9 @@ class Controller:
|
||||
except OSError as e:
|
||||
log.error(f"Cannot read Etag appliance file '{etag_appliances_path}': {e}")
|
||||
|
||||
# FIXME
|
||||
# FIXME install builtin appliances only once, need to store "version" somewhere...
|
||||
#if parse_version(__version__) > parse_version(controller_settings.get("version", "")):
|
||||
# self._appliance_manager.install_builtin_appliances()
|
||||
# self._appliance_manager.install_builtin_appliances()
|
||||
|
||||
self._appliance_manager.install_builtin_appliances()
|
||||
self._appliance_manager.load_appliances()
|
||||
|
||||
@@ -203,6 +203,7 @@ class QemuTemplate(Template):
|
||||
kernel_command_line = Column(String)
|
||||
replicate_network_connection_state = Column(Boolean)
|
||||
create_config_disk = Column(Boolean)
|
||||
tpm = Column(Boolean)
|
||||
on_close = Column(String)
|
||||
cpu_throttling = Column(Integer)
|
||||
process_priority = Column(String)
|
||||
|
||||
@@ -205,6 +205,7 @@ class QemuBase(BaseModel):
|
||||
create_config_disk: Optional[bool] = Field(
|
||||
None, description="Automatically create a config disk on HDD disk interface (secondary slave)"
|
||||
)
|
||||
tpm: Optional[bool] = Field(None, description="Enable Trusted Platform Module (TPM)")
|
||||
on_close: Optional[QemuOnCloseAction] = Field(None, description="Action to execute on the VM is closed")
|
||||
cpu_throttling: Optional[int] = Field(None, ge=0, le=800, description="Percentage of CPU allowed for QEMU")
|
||||
process_priority: Optional[QemuProcessPriority] = Field(None, description="Process priority for QEMU")
|
||||
|
||||
@@ -80,6 +80,7 @@ class QemuTemplate(TemplateBase):
|
||||
create_config_disk: Optional[bool] = Field(
|
||||
False, description="Automatically create a config disk on HDD disk interface (secondary slave)"
|
||||
)
|
||||
tpm: Optional[bool] = Field(False, description="Enable Trusted Platform Module (TPM)")
|
||||
on_close: Optional[QemuOnCloseAction] = Field("power_off", description="Action to execute on the VM is closed")
|
||||
cpu_throttling: Optional[int] = Field(0, ge=0, le=800, description="Percentage of CPU allowed for QEMU")
|
||||
process_priority: Optional[QemuProcessPriority] = Field("normal", description="Process priority for QEMU")
|
||||
|
||||
Reference in new issue
Block a user