mirror of
https://github.com/hansjone/netx.git
synced 2026-10-11 01:43:21 +08:00
Ship gated eye polish, fabric levels, and collection UI refresh.
Topology MCP adds pull/compact/bundle/suggest-hubs with a no-template skill path; API gains fabric level and NE collection policy; web list pages get paging and denser collect/network workflows. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
b1aee86701
commit
b81e5869a6
91 changed files with 10395 additions and 1513 deletions
|
|
@ -467,7 +467,17 @@ def _apply_fabric_filters(
|
|||
)
|
||||
role_v = str(role or "").strip().lower()
|
||||
if role_v:
|
||||
q = q.filter(TopoFabricNode.role == role_v)
|
||||
from .topology_level import LEVEL_PRESETS
|
||||
|
||||
if role_v in LEVEL_PRESETS:
|
||||
maj = int(LEVEL_PRESETS[role_v])
|
||||
q = q.filter(
|
||||
TopoFabricNode.level.isnot(None),
|
||||
TopoFabricNode.level >= float(maj),
|
||||
TopoFabricNode.level < float(maj) + 1.0,
|
||||
)
|
||||
else:
|
||||
q = q.filter(TopoFabricNode.role == role_v)
|
||||
vendor_v = str(vendor or "").strip()
|
||||
if vendor_v:
|
||||
q = q.filter(TopoFabricNode.vendor.ilike(f"%{vendor_v}%"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue