mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
feat(ne-exec): make max CLI commands configurable and allow traceroute
Add NETX_NE_EXEC_MAX_COMMANDS (default 5, cap 50) and whitelist traceroute/tracert/trace/trace6 prefixes for lab/ops use. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
a6a5abc9ef
commit
88479245bb
9 changed files with 116 additions and 15 deletions
|
|
@ -3,6 +3,8 @@ NETX_DATABASE_URL=postgresql+psycopg://netx:netx@127.0.0.1:5432/netx
|
|||
NETX_CREDENTIAL_SECRET_KEY=
|
||||
NETX_NE_CONNECT_MAX_WORKERS=5
|
||||
NETX_NE_CONNECT_TIMEOUT_SEC=30
|
||||
# Managed NE CLI: max commands per exec request (default 5, hard cap 50). Lab can set 10+.
|
||||
NETX_NE_EXEC_MAX_COMMANDS=5
|
||||
NETX_HOST=127.0.0.1
|
||||
NETX_PORT=8890
|
||||
NETX_VENDOR=ZTE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue