docs(netx): allow ping/ping6 in execManagedNe CLI policy

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-06-05 16:15:00 +08:00
parent 9b58479e92
commit 35a66dcc44
2 changed files with 3 additions and 2 deletions

View file

@ -769,7 +769,7 @@ def netx_exec_managed_ne_tool() -> ToolSpec:
name="netx_exec_managed_ne",
description=(
"经 netx 登录「网元管理」中的设备并执行只读 CLI(POST /v1/managed-ne/exec)。"
"每条命令须以 show 或 display 开头(仅只读查询,禁止 ping/get/traceroute 等);"
"每条命令须以 show / display / ping / ping6 开头(只读查询与连通探测,禁止 get/traceroute/改配置等);"
"禁止管道符、分号及改配置类命令;单次最多 5 条;默认读超时 60s。"
"返回合并输出(含命令回显);失败时含 error/detail。"
"先 netx_list_managed_ne 解析 ne_id;若 connect_status 非 pass 可先 netx_get_managed_ne 看 connect_detail。"