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:
oliver 2026-08-10 23:34:19 +08:00
parent 8a07baa018
commit 9ba4d051dc
8 changed files with 355 additions and 14 deletions

View file

@ -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