Improve port-traffic logs and add manual NE rebind.

Fix unreadable collect-log contrast, surface errors on the Logs button, and let operators re-link a monitor to a chosen inventory NE without wiping samples.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-02 12:52:26 +08:00
parent a6c7267b47
commit 3f0787da11
9 changed files with 537 additions and 60 deletions

View file

@ -51,6 +51,12 @@ class PortTrafficDeviceUpdate(BaseModel):
vendor: str | None = None
class PortTrafficDeviceRebind(BaseModel):
"""Re-link a monitor device to an explicitly chosen managed/UME NE; keeps samples."""
ne_id: str = Field(min_length=1, max_length=128)
class PortTrafficDeviceOut(BaseModel):
id: str
source: str