mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +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
|
|
@ -32,6 +32,7 @@ class FabricNodeOut(BaseModel):
|
|||
managed_alive: bool = False
|
||||
ume_alive: bool = False
|
||||
managed_source: str = "" # manual | ume_sync | lldp | webcrt | …
|
||||
deletable: bool = False
|
||||
|
||||
|
||||
class FabricEdgeOut(BaseModel):
|
||||
|
|
@ -425,6 +426,16 @@ class FabricNodesBulkTagOut(BaseModel):
|
|||
samples: list[dict[str, Any]] = Field(default_factory=list)
|
||||
|
||||
|
||||
class FabricNodesDeleteRequest(BaseModel):
|
||||
fabric_node_ids: list[str] = Field(default_factory=list, min_length=1)
|
||||
|
||||
|
||||
class FabricNodesDeleteOut(BaseModel):
|
||||
deleted: int = 0
|
||||
edges_deleted: int = 0
|
||||
placements_deleted: int = 0
|
||||
|
||||
|
||||
class SliceGenerateRequest(BaseModel):
|
||||
folder_id: str
|
||||
template: str = Field(description="core_only | core_agg | agg_access")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue