mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 14:10:44 +08:00
Project discover neighbors from scanned seeds only.
Accept optional seed ids on project-neighbors; canvas discover passes scanned fabric nodes and places new peers near them. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
7cd89aaae9
commit
03ef9eb39a
9 changed files with 137 additions and 18 deletions
|
|
@ -1084,8 +1084,14 @@ export const removeTopologyViewNodes = (viewId: string, fabricNodeIds: string[])
|
|||
fabric_node_ids: fabricNodeIds,
|
||||
});
|
||||
|
||||
export const projectTopologyNeighbors = (viewId: string) =>
|
||||
apiPost<TopologyViewGraph>(`/v1/topology/views/${encodeURIComponent(viewId)}/project-neighbors`, {});
|
||||
export const projectTopologyNeighbors = (
|
||||
viewId: string,
|
||||
body?: { seed_fabric_node_ids?: string[]; managed_ne_ids?: string[] },
|
||||
) =>
|
||||
apiPost<TopologyViewGraph>(
|
||||
`/v1/topology/views/${encodeURIComponent(viewId)}/project-neighbors`,
|
||||
body || {},
|
||||
);
|
||||
|
||||
export const patchTopologyEdgeStyle = (
|
||||
viewId: string,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue