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:
oliver 2026-08-04 14:27:46 +08:00
parent 14251f4698
commit 48cc381afd
3 changed files with 34 additions and 6 deletions

View file

@ -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")