mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 03:30:49 +08:00
Defer canvas edge deletes to Save and cascade orphan Fabric on NE detach.
Queue fabric edge deletes until Save with undo-safe pending state; hard-delete topology/LLDP placeholders from the canvas; purge fully orphaned fabric nodes after inventory detach, with a periodic reconcile GC. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2aafb72676
commit
6e2c8517cf
16 changed files with 732 additions and 166 deletions
|
|
@ -1176,6 +1176,18 @@ export const deleteFabricNodes = (fabricNodeIds: string[]) =>
|
|||
{ fabric_node_ids: fabricNodeIds },
|
||||
);
|
||||
|
||||
/** Hard-delete topology/LLDP placeholders (ManagedNE + fabric + edges). */
|
||||
export const purgePlaceholderFabricNodes = (fabricNodeIds: string[]) =>
|
||||
apiPost<{
|
||||
deleted: number;
|
||||
edges_deleted: number;
|
||||
placements_deleted: number;
|
||||
managed_deleted: number;
|
||||
membership_views: number;
|
||||
}>("/v1/topology/fabric/nodes/purge-placeholders", {
|
||||
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