mirror of
https://github.com/hansjone/netx.git
synced 2026-10-14 11:43:18 +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
|
|
@ -238,6 +238,18 @@ class ViewPopulateRequest(BaseModel):
|
|||
freeze_after: bool = True
|
||||
|
||||
|
||||
class ViewProjectNeighborsRequest(BaseModel):
|
||||
"""Project fabric neighbors onto a view.
|
||||
|
||||
When seed ids are omitted, expand from every node already on the canvas.
|
||||
When provided, expand only from those seeds (resolved to fabric nodes that
|
||||
are already placed on the view).
|
||||
"""
|
||||
|
||||
seed_fabric_node_ids: list[str] = Field(default_factory=list)
|
||||
managed_ne_ids: list[str] = Field(default_factory=list)
|
||||
|
||||
|
||||
class ViewNodeIn(BaseModel):
|
||||
fabric_node_id: str = Field(min_length=1, max_length=64)
|
||||
x: float = 0.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue