mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 21:50:47 +08:00
Allow promoting LLDP/WebCRT placeholder NEs to real device types.
Accept generic/linux on update, expose them in the device-type meta list, and auto-pick zte_zxros when vendor changes from a placeholder type. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
14251f4698
commit
48cc381afd
3 changed files with 34 additions and 6 deletions
|
|
@ -59,7 +59,10 @@ def api_list_managed_ne(
|
|||
|
||||
@router.get("/meta/device-types")
|
||||
def api_device_types():
|
||||
return {"device_types": list(SUPPORTED_DEVICE_TYPES), "vendors": list(SUPPORTED_VENDORS)}
|
||||
# Include generic/linux so LLDP/WebCRT placeholders can be edited without a bogus select value.
|
||||
from .device_types import WEBCRT_DEVICE_TYPES
|
||||
|
||||
return {"device_types": list(WEBCRT_DEVICE_TYPES), "vendors": list(SUPPORTED_VENDORS)}
|
||||
|
||||
|
||||
@router.get("/meta/credentials-configured")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue