mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 17:50:44 +08:00
Harden topology canvas edge delete, discover cancel, and map UX.
Persist Fabric edge deletes, stop LLDP jobs from the canvas, surface truncation/placeholders/stale edges, and fix LLDP job deep-links. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5e567408e7
commit
617d4245b0
14 changed files with 468 additions and 238 deletions
|
|
@ -1268,6 +1268,16 @@ export const createFabricManualEdge = (body: {
|
|||
b_port?: string;
|
||||
}) => apiPost<{ ok: boolean; action: string; edge: Record<string, unknown> }>("/v1/topology/fabric/edges", body);
|
||||
|
||||
export const deleteFabricEdges = (edgeIds: string[]) =>
|
||||
apiPost<{ ok: boolean; deleted: number }>("/v1/topology/fabric/edges/delete", {
|
||||
edge_ids: edgeIds,
|
||||
});
|
||||
|
||||
export const deleteFabricEdge = (edgeId: string) =>
|
||||
apiDelete<{ ok: boolean; deleted: number }>(
|
||||
`/v1/topology/fabric/edges/${encodeURIComponent(edgeId)}`,
|
||||
);
|
||||
|
||||
/** Back-compat aliases used by older call sites during cutover. */
|
||||
export const fetchTopologyMaps = fetchTopologyViews;
|
||||
export const createTopologyMap = createTopologyView;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue