mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-28 14:50:14 +03:00
fix(copilot): improve device_type error message with tested types and config instructions
Add tested device types (cisco_ios_telnet, gns3_huawei_telnet_ce, gns3_ruijie_telnet) to the error message and include Web UI configuration path.
This commit is contained in:
parent
3dbae9585c
commit
4cd74901a5
@ -107,9 +107,15 @@ def get_device_ports_from_topology(
|
|||||||
# Return error if device_type not found in tags
|
# Return error if device_type not found in tags
|
||||||
# Using a default would cause command execution errors
|
# Using a default would cause command execution errors
|
||||||
if device_type is None:
|
if device_type is None:
|
||||||
|
tested_device_types = (
|
||||||
|
"cisco_ios_telnet (Netmiko built-in), gns3_huawei_telnet_ce (custom Huawei), "
|
||||||
|
"gns3_ruijie_telnet (custom Ruijie)"
|
||||||
|
)
|
||||||
error_msg = (
|
error_msg = (
|
||||||
f"Device '{device_name}': device_type tag not found. "
|
f"Device '{device_name}': device_type tag not found. "
|
||||||
f"Please add 'device_type:<type>' tag to this device in GNS3. "
|
f"Please add 'device_type:<type>' tag to this device in GNS3. "
|
||||||
|
f"To configure via Web UI: right-click the device -> Configure -> Tags -> add 'device_type:<type>'. "
|
||||||
|
f"Tested types: {tested_device_types}. "
|
||||||
f"Current tags: {tags}"
|
f"Current tags: {tags}"
|
||||||
)
|
)
|
||||||
logger.error(error_msg)
|
logger.error(error_msg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user