mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 15:23:13 +08:00
Add topology-canvas placeholder NE create (source=topology).
Toolbar and pane context menu create placeholders that follow the same setup path as LLDP in NE management and WebCRT. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
71c5193ecd
commit
241093343e
21 changed files with 460 additions and 31 deletions
|
|
@ -1070,6 +1070,15 @@ export const addTopologyViewNodes = (
|
|||
},
|
||||
) => apiPost<TopologyViewGraph>(`/v1/topology/views/${encodeURIComponent(viewId)}/nodes`, body);
|
||||
|
||||
export const createTopologyPlaceholder = (
|
||||
viewId: string,
|
||||
body: { name: string; ip_address?: string; x?: number; y?: number },
|
||||
) =>
|
||||
apiPost<TopologyViewGraph>(
|
||||
`/v1/topology/views/${encodeURIComponent(viewId)}/nodes/create-placeholder`,
|
||||
body,
|
||||
);
|
||||
|
||||
export const removeTopologyViewNodes = (viewId: string, fabricNodeIds: string[]) =>
|
||||
apiPost<TopologyViewGraph>(`/v1/topology/views/${encodeURIComponent(viewId)}/nodes/remove`, {
|
||||
fabric_node_ids: fabricNodeIds,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue