netx/netx_api
oliver 9314f11ce7 Fix WebCRT sessions killed by StrictMode ws_ticket reuse.
Allow short-lived tickets multiple uses, stop deleting PTY on transient websocket errors, and avoid marking connect complete after a dropped wait loop.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 18:49:29 +08:00
..
config/parsers feat: initialize netx ops tool repository 2026-05-03 23:43:21 +08:00
mcp feat(mcp): add netx-mcp package and HTTP stdio MCP 2026-05-30 15:44:32 +08:00
models Split ORM models into a domain package with stable re-exports. 2026-08-02 17:48:37 +08:00
__init__.py feat(mcp): add netx-mcp package and HTTP stdio MCP 2026-05-30 15:44:32 +08:00
alarms_router.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
ap_client.py fix(oclaw-bridge): disable system proxy for localhost health calls 2026-05-09 16:10:34 +08:00
app_shutdown.py Expose worker scheduler health via heartbeat and isolate WebCRT IO. 2026-08-02 18:37:06 +08:00
app_startup.py Harden retention under one-click start: UME raw caps and collection TTL. 2026-08-02 18:16:30 +08:00
audit_async.py Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics. 2026-08-02 18:02:43 +08:00
auth_deps.py Harden auth scopes, SQL/WebCRT gates, and per-install JWT secrets. 2026-08-02 16:24:34 +08:00
auth_middleware.py Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics. 2026-08-02 18:02:43 +08:00
auth_passwords.py feat(auth): add local login, audit, API keys, and system admin UI 2026-07-30 02:34:25 +00:00
auth_router.py Harden auth scopes, SQL/WebCRT gates, and per-install JWT secrets. 2026-08-02 16:24:34 +08:00
auth_schemas.py Harden auth scopes, SQL/WebCRT gates, and per-install JWT secrets. 2026-08-02 16:24:34 +08:00
auth_scopes.py Harden auth scopes, SQL/WebCRT gates, and per-install JWT secrets. 2026-08-02 16:24:34 +08:00
auth_service.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
auth_tokens.py Harden auth scopes, SQL/WebCRT gates, and per-install JWT secrets. 2026-08-02 16:24:34 +08:00
cli_budget.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
cli_resolve.py feat(cli): UME lazy exec via shared profiles and ume_ne_id MCP support 2026-06-26 17:13:49 +08:00
cli_router.py feat(cli): UME lazy exec via shared profiles and ume_ne_id MCP support 2026-06-26 17:13:49 +08:00
cli_schemas.py Harden WebCRT reconnect, resource use, and SFTP UX. 2026-08-01 23:50:41 +08:00
cli_service.py Harden WebCRT reconnect, resource use, and SFTP UX. 2026-08-01 23:50:41 +08:00
cli_timeout.py Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics. 2026-08-02 18:02:43 +08:00
collection_job_state.py feat(collect): draft jobs, merged create UI, and unified start 2026-05-28 10:36:47 +08:00
collection_recovery.py feat(ops): add managed NE management and batch CLI collection 2026-05-27 23:34:29 +08:00
collection_router.py feat(collect): draft jobs, merged create UI, and unified start 2026-05-28 10:36:47 +08:00
collection_schemas.py Add topology classify inventory, fabric lifecycle, and broader collect targets. 2026-08-02 11:09:58 +08:00
collection_service.py Add topology classify inventory, fabric lifecycle, and broader collect targets. 2026-08-02 11:09:58 +08:00
config.py Expose worker scheduler health via heartbeat and isolate WebCRT IO. 2026-08-02 18:37:06 +08:00
config_sync_codec.py Add industrial config sync separate from collection tasks. 2026-07-31 10:25:36 +08:00
config_sync_commands.py Add industrial config sync separate from collection tasks. 2026-07-31 10:25:36 +08:00
config_sync_common.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
config_sync_cycles.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
config_sync_recovery.py Add config-sync cycle retention alongside config history keep. 2026-08-02 03:44:35 +00:00
config_sync_router.py Add config sync cycle stop and surface pause/stop controls in the UI. 2026-07-31 17:04:56 +08:00
config_sync_runner.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
config_sync_scheduler.py Expose worker scheduler health via heartbeat and isolate WebCRT IO. 2026-08-02 18:37:06 +08:00
config_sync_schemas.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
config_sync_service.py Split topology classify and config sync services by domain. 2026-08-02 17:21:50 +08:00
config_sync_snapshots.py Split topology classify and config sync services by domain. 2026-08-02 17:21:50 +08:00
db.py Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics. 2026-08-02 18:02:43 +08:00
device_types.py Add LLDP collect page with conservative fabric edge lifecycle. 2026-08-02 03:39:15 +08:00
importer.py feat: initialize netx ops tool repository 2026-05-03 23:43:21 +08:00
integrations_router.py Expose worker scheduler health via heartbeat and isolate WebCRT IO. 2026-08-02 18:37:06 +08:00
key_alert_config.py fix(ume): global clear-push setting, schema migration, and help hints 2026-06-22 17:26:49 +08:00
key_alert_forward.py feat(ume): OClaw forwarder runtime task and i18n status codes 2026-06-24 10:29:10 +08:00
key_alert_matcher.py feat(ume): ne_type filter, rule edit, and pager layout 2026-06-23 20:44:33 +08:00
lldp_collect_router.py Add LLDP collect page with conservative fabric edge lifecycle. 2026-08-02 03:39:15 +08:00
lldp_collect_scheduler.py Expose worker scheduler health via heartbeat and isolate WebCRT IO. 2026-08-02 18:37:06 +08:00
lldp_collect_schemas.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
lldp_collect_service.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
main.py Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics. 2026-08-02 18:02:43 +08:00
managed_ne_router.py feat(ne-exec): make max CLI commands configurable and allow traceroute 2026-07-28 10:57:55 +08:00
mcp_server.py feat(mcp): add netx-mcp package and HTTP stdio MCP 2026-05-30 15:44:32 +08:00
metrics_router.py Expose worker scheduler health via heartbeat and isolate WebCRT IO. 2026-08-02 18:37:06 +08:00
ne_cli_errors.py Improve WebCRT new-session flow for SecureCRT-like SSH/Telnet use. 2026-08-01 22:52:31 +08:00
ne_cli_hop.py Split ne_session_factory into templates, CLI hop detection, and connect paths. 2026-08-02 17:15:57 +08:00
ne_collect_runner.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
ne_collection_paths.py Harden retention under one-click start: UME raw caps and collection TTL. 2026-08-02 18:16:30 +08:00
ne_connect.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
ne_crypto.py feat(ops): add managed NE management and batch CLI collection 2026-05-27 23:34:29 +08:00
ne_exec.py Split WebCRT and API startup; default collectors to worker process. 2026-08-02 16:50:52 +08:00
ne_exec_guard.py Split WebCRT and API startup; default collectors to worker process. 2026-08-02 16:50:52 +08:00
ne_hop_templates.py Split ne_session_factory into templates, CLI hop detection, and connect paths. 2026-08-02 17:15:57 +08:00
ne_netmiko.py Improve WebCRT new-session flow for SecureCRT-like SSH/Telnet use. 2026-08-01 22:52:31 +08:00
ne_schemas.py Add topology classify inventory, fabric lifecycle, and broader collect targets. 2026-08-02 11:09:58 +08:00
ne_service.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ne_service_common.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
ne_service_crud.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ne_service_import.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ne_service_webcrt.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ne_session_connect.py Split ne_session_factory into templates, CLI hop detection, and connect paths. 2026-08-02 17:15:57 +08:00
ne_session_factory.py Split ne_session_factory into templates, CLI hop detection, and connect paths. 2026-08-02 17:15:57 +08:00
oclaw_alarm_forwarder.py Adopt production-safe runtime defaults and forwarder retry limits. 2026-08-02 18:08:28 +08:00
ops_router.py Add ops task overview, chart ahead window, and WebCRT lifecycle status. 2026-08-02 14:05:59 +08:00
ops_tasks_service.py Add ops task overview, chart ahead window, and WebCRT lifecycle status. 2026-08-02 14:05:59 +08:00
parser_config.py feat: initialize netx ops tool repository 2026-05-03 23:43:21 +08:00
port_traffic_board_service.py Add ops task overview, chart ahead window, and WebCRT lifecycle status. 2026-08-02 14:05:59 +08:00
port_traffic_commands.py Add Huawei/Cisco port traffic monitoring and keep Cisco CLI on send_command. 2026-07-31 21:30:46 +08:00
port_traffic_common.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
port_traffic_devices.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
port_traffic_migrate.py Add ops task overview, chart ahead window, and WebCRT lifecycle status. 2026-08-02 14:05:59 +08:00
port_traffic_parsers.py Move port traffic to device-centric monitoring with a dedicated wall and collect logs. 2026-08-01 15:45:20 +08:00
port_traffic_recovery.py Move port traffic to device-centric monitoring with a dedicated wall and collect logs. 2026-08-01 15:45:20 +08:00
port_traffic_router.py Add ops task overview, chart ahead window, and WebCRT lifecycle status. 2026-08-02 14:05:59 +08:00
port_traffic_runner.py Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics. 2026-08-02 18:02:43 +08:00
port_traffic_samples.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
port_traffic_scheduler.py Adopt production-safe runtime defaults and forwarder retry limits. 2026-08-02 18:08:28 +08:00
port_traffic_schemas.py Add ops task overview, chart ahead window, and WebCRT lifecycle status. 2026-08-02 14:05:59 +08:00
port_traffic_service.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
runtime_budget.py Start API and collector worker together from one-click scripts. 2026-08-02 18:20:13 +08:00
runtime_task_messages.py feat(ume): OClaw forwarder runtime task and i18n status codes 2026-06-24 10:29:10 +08:00
scheduler_heartbeat.py Expose worker scheduler health via heartbeat and isolate WebCRT IO. 2026-08-02 18:37:06 +08:00
schema_patches.py Move schema evolution to Alembic with auto-upgrade on API start. 2026-08-02 16:41:56 +08:00
schemas.py feat: initialize netx ops tool repository 2026-05-03 23:43:21 +08:00
security_bootstrap.py Harden auth scopes, SQL/WebCRT gates, and per-install JWT secrets. 2026-08-02 16:24:34 +08:00
sql_guard.py Harden auth scopes, SQL/WebCRT gates, and per-install JWT secrets. 2026-08-02 16:24:34 +08:00
sql_router.py Harden auth scopes, SQL/WebCRT gates, and per-install JWT secrets. 2026-08-02 16:24:34 +08:00
timeutil.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
topology_classify.py Split topology classify and config sync services by domain. 2026-08-02 17:21:50 +08:00
topology_classify_apply.py Split topology classify and config sync services by domain. 2026-08-02 17:21:50 +08:00
topology_classify_common.py Split topology classify and config sync services by domain. 2026-08-02 17:21:50 +08:00
topology_classify_rules.py Split topology classify and config sync services by domain. 2026-08-02 17:21:50 +08:00
topology_classify_slices.py Split topology classify and config sync services by domain. 2026-08-02 17:21:50 +08:00
topology_common.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
topology_discover.py Split topology discover into target, scan, and job modules. 2026-08-02 17:50:10 +08:00
topology_discover_common.py Split topology discover into target, scan, and job modules. 2026-08-02 17:50:10 +08:00
topology_discover_jobs.py Adopt production-safe runtime defaults and forwarder retry limits. 2026-08-02 18:08:28 +08:00
topology_discover_scan.py Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics. 2026-08-02 18:02:43 +08:00
topology_fabric.py Split topology fabric and views into focused domain modules. 2026-08-02 17:46:16 +08:00
topology_fabric_links.py Split topology fabric and views into focused domain modules. 2026-08-02 17:46:16 +08:00
topology_fabric_nodes.py Split topology fabric and views into focused domain modules. 2026-08-02 17:46:16 +08:00
topology_fabric_peers.py Split topology fabric and views into focused domain modules. 2026-08-02 17:46:16 +08:00
topology_inventory_lifecycle.py Add fabric-node delete on classify inventory for orphans and placeholders. 2026-08-02 11:44:35 +08:00
topology_lldp.py Add ops task overview, chart ahead window, and WebCRT lifecycle status. 2026-08-02 14:05:59 +08:00
topology_membership.py Add topology classify inventory, fabric lifecycle, and broader collect targets. 2026-08-02 11:09:58 +08:00
topology_migrate.py Add topology classify inventory, fabric lifecycle, and broader collect targets. 2026-08-02 11:09:58 +08:00
topology_router.py Split topology_service into common, fabric, views, and discover modules. 2026-08-02 16:34:59 +08:00
topology_schemas.py Raise runtime defaults for multi-user shared-server deployments. 2026-08-02 18:11:12 +08:00
topology_service.py Split topology_service into common, fabric, views, and discover modules. 2026-08-02 16:34:59 +08:00
topology_views.py Split topology fabric and views into focused domain modules. 2026-08-02 17:46:16 +08:00
topology_views_graph.py Split topology fabric and views into focused domain modules. 2026-08-02 17:46:16 +08:00
topology_views_tree.py Split topology fabric and views into focused domain modules. 2026-08-02 17:46:16 +08:00
ume_alarm_apply.py Harden retention under one-click start: UME raw caps and collection TTL. 2026-08-02 18:16:30 +08:00
ume_alarm_subscription_store.py feat(ume): real-time current alarms via WebSocket subscription 2026-05-22 20:27:43 +08:00
ume_alarm_ws.py Split UME alarm WebSocket consumer into state, log, subscription, and loop modules. 2026-08-02 17:26:40 +08:00
ume_alarm_ws_consumer.py Split UME alarm WebSocket consumer into state, log, subscription, and loop modules. 2026-08-02 17:26:40 +08:00
ume_alarm_ws_log.py Split UME alarm WebSocket consumer into state, log, subscription, and loop modules. 2026-08-02 17:26:40 +08:00
ume_alarm_ws_state.py Split UME alarm WebSocket consumer into state, log, subscription, and loop modules. 2026-08-02 17:26:40 +08:00
ume_alarm_ws_subscription.py Split UME alarm WebSocket consumer into state, log, subscription, and loop modules. 2026-08-02 17:26:40 +08:00
ume_alarms_router.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ume_client.py fix(ume): accept empty JSON body on successful delete-subscription 2026-05-22 21:01:24 +08:00
ume_inventory_router.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ume_key_alert_router.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ume_raw.py Harden retention under one-click start: UME raw caps and collection TTL. 2026-08-02 18:16:30 +08:00
ume_router.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ume_runtime.py Expose worker scheduler health via heartbeat and isolate WebCRT IO. 2026-08-02 18:37:06 +08:00
ume_support.py Split port traffic service and replace deprecated UTC/lifespan APIs. 2026-08-02 17:06:46 +08:00
ume_sync_common.py Split UME sync and WebCRT session into focused modules. 2026-08-02 17:12:55 +08:00
ume_sync_pull.py Harden retention under one-click start: UME raw caps and collection TTL. 2026-08-02 18:16:30 +08:00
ume_sync_router.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ume_sync_service.py Split UME sync and WebCRT session into focused modules. 2026-08-02 17:12:55 +08:00
ume_token_router.py Split UME routes and managed-NE service by domain. 2026-08-02 17:03:42 +08:00
ume_token_store.py feat(UME): 增加RESTCONF对接与可视化运维页 2026-05-08 01:36:53 +08:00
webcrt_channel.py Split UME sync and WebCRT session into focused modules. 2026-08-02 17:12:55 +08:00
webcrt_io.py Expose worker scheduler health via heartbeat and isolate WebCRT IO. 2026-08-02 18:37:06 +08:00
webcrt_router.py Fix WebCRT sessions killed by StrictMode ws_ticket reuse. 2026-08-02 18:49:29 +08:00
webcrt_service.py Split UME sync and WebCRT session into focused modules. 2026-08-02 17:12:55 +08:00
webcrt_session.py Split UME sync and WebCRT session into focused modules. 2026-08-02 17:12:55 +08:00
webcrt_session_model.py Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics. 2026-08-02 18:02:43 +08:00
webcrt_session_registry.py Fix WebCRT sessions killed by StrictMode ws_ticket reuse. 2026-08-02 18:49:29 +08:00
webcrt_sftp.py Expand WebCRT SFTP into a fuller file manager. 2026-08-02 01:33:37 +08:00
webcrt_tickets.py Fix WebCRT sessions killed by StrictMode ws_ticket reuse. 2026-08-02 18:49:29 +08:00
worker.py Adopt production-safe runtime defaults and forwarder retry limits. 2026-08-02 18:08:28 +08:00