mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 20:45:45 +08:00
Add concurrent multi-NE CLI exec batch for field sweeps.
execManagedNe can take ne_ids/ume_ne_ids/targets and POST /v1/managed-ne/exec-batch so many show commands run in parallel instead of serial one-NE MCP loops. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
8a07baa018
commit
9ba4d051dc
8 changed files with 355 additions and 14 deletions
|
|
@ -114,7 +114,8 @@ def required_scope_for_request(method: str, path: str) -> str | None:
|
|||
return SCOPE_WEBCRT
|
||||
|
||||
if p.startswith("/v1/managed-ne"):
|
||||
if p.rstrip("/").endswith("/exec") and m == "POST":
|
||||
path_tail = p.rstrip("/")
|
||||
if m == "POST" and (path_tail.endswith("/exec") or path_tail.endswith("/exec-batch")):
|
||||
return SCOPE_NE_EXEC
|
||||
if m in ("POST", "PUT", "PATCH", "DELETE"):
|
||||
return SCOPE_NE_WRITE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue