mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 06:40:45 +08:00
Add fabric-node delete on classify inventory for orphans and placeholders.
Allow removing detached or LLDP/WebCRT fabric rows from classify and slices without touching managed/UME inventory; keep UME-only nodes protected. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
a5a3a4f156
commit
53ddb3b520
10 changed files with 391 additions and 11 deletions
|
|
@ -1040,6 +1040,17 @@ export const patchFabricNodeTags = (
|
|||
body,
|
||||
);
|
||||
|
||||
export const deleteFabricNode = (fabricNodeId: string) =>
|
||||
apiDelete<{ deleted: number; edges_deleted: number; placements_deleted: number }>(
|
||||
`/v1/topology/fabric/nodes/${encodeURIComponent(fabricNodeId)}`,
|
||||
);
|
||||
|
||||
export const deleteFabricNodes = (fabricNodeIds: string[]) =>
|
||||
apiPost<{ deleted: number; edges_deleted: number; placements_deleted: number }>(
|
||||
"/v1/topology/fabric/nodes/delete",
|
||||
{ fabric_node_ids: fabricNodeIds },
|
||||
);
|
||||
|
||||
export const generateTopologySlices = (body: {
|
||||
folder_id: string;
|
||||
template: "core_only" | "core_agg" | "agg_access";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue