mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
copilot: sync CONSOLE_TYPES with the server ConsoleType enum
The vendored gns3fy copy keeps its type lists as literals (the module is shared with the standalone MCP service and cannot import server enums), and CONSOLE_TYPES had drifted: 'ssh' and 'docker_exec' were missing while both are valid server-side. Impact: the copilot topology reader validates the whole node list in one pydantic pass, so a single vendor NOS node (console_type 'docker_exec') made it drop the entire project and return zero devices to every copilot device tool. Add the missing values plus drift tests asserting the vendored lists cover the server enums (skipped when ai-features extras are absent).
This commit is contained in:
2 files changed
+76
No files matched your search
@@ -93,14 +93,19 @@ NODE_TYPES = [
|
||||
"qemu",
|
||||
]
|
||||
|
||||
# Keep in sync with gns3server.schemas.common.ConsoleType. The values are
|
||||
# duplicated as literals because this module is shared with the standalone
|
||||
# MCP service and cannot import the enum. "null" is gns3fy legacy.
|
||||
CONSOLE_TYPES = [
|
||||
"vnc",
|
||||
"telnet",
|
||||
"ssh",
|
||||
"http",
|
||||
"https",
|
||||
"spice",
|
||||
"spice+agent",
|
||||
"none",
|
||||
"docker_exec",
|
||||
"null",
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user