Split UME and alarms routes out of main; align UI scopes.

Extract ume_support/ume_router and alarms_router so main stays startup-focused, add topology fabric/views import surfaces, and gate managed-NE writes by ne:write.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-02 16:30:29 +08:00
parent 633a9d55bd
commit 8180f069ea
11 changed files with 2365 additions and 2090 deletions

View file

@ -0,0 +1,45 @@
"""Topology folder tree + leaf view operations.
Re-exports view/tree APIs from ``topology_service`` so routers can depend on a
narrower module boundary while the monolith file is gradually split.
"""
from __future__ import annotations
from .topology_service import (
add_nodes_to_view,
bootstrap_topology_tree,
create_folder,
create_view,
delete_folder,
delete_view,
get_topology_tree,
get_view_graph,
list_views,
patch_view_edge_style,
patch_view_positions,
populate_view,
project_fabric_neighbors_to_view,
remove_view_nodes,
update_folder,
update_view,
)
__all__ = [
"add_nodes_to_view",
"bootstrap_topology_tree",
"create_folder",
"create_view",
"delete_folder",
"delete_view",
"get_topology_tree",
"get_view_graph",
"list_views",
"patch_view_edge_style",
"patch_view_positions",
"populate_view",
"project_fabric_neighbors_to_view",
"remove_view_nodes",
"update_folder",
"update_view",
]