mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
feat(UME): 增加RESTCONF对接与可视化运维页
- 支持 token 获取/续约/断开、DB共享缓存与跨进程单飞锁、keepalive 保活 - 新增 inventory/current/history 告警同步入库与查询接口,前端增加 UME 对接页面与分页 - 修复 stop_netx.ps1 在部分 PowerShell 版本下 Stop-Job -Force 报错 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ab1b76dd47
commit
7f2e4ec393
15 changed files with 2577 additions and 15 deletions
|
|
@ -20,6 +20,30 @@ class Settings(BaseSettings):
|
|||
oclaw_connect_timeout_sec: float = 15.0
|
||||
oclaw_analyze_read_timeout_sec: float = 180.0
|
||||
oclaw_health_timeout_sec: float = 8.0
|
||||
# UME RESTCONF integration
|
||||
ume_base_url: str = ""
|
||||
ume_username: str = ""
|
||||
ume_password: str = ""
|
||||
ume_verify_tls: bool = False
|
||||
ume_timeout_s: float = 20.0
|
||||
ume_page_size: int = 1000
|
||||
ume_max_pages: int = 2000
|
||||
ume_limit_max: int = 5000
|
||||
ume_limit_only_page_size: int = 5000
|
||||
ume_auth_header: str = "accessToken"
|
||||
ume_content_type: str = "application/yang-data+json;charset=UTF-8"
|
||||
ume_token_ttl_s: int = 1800
|
||||
ume_token_refresh_skew_s: int = 60
|
||||
ume_keepalive_enabled: bool = True
|
||||
ume_keepalive_interval_s: int = 600
|
||||
ume_keepalive_renew_before_s: int = 900
|
||||
ume_token_path: str = "/restconf/operations/zte-security:oauth_token"
|
||||
ume_token_handshake_path: str = "/restconf/operations/zte-security:oauth_handshake"
|
||||
ume_token_logout_path: str = "/restconf/operations/zte-security:oauth_token"
|
||||
ume_ne_path: str = "/restconf/data/zte-resources-module:network-elements"
|
||||
ume_alarms_path: str = "/restconf/data/zte-alarms:alarms/alarm-list"
|
||||
ume_sync_inventory_every_hours: int = 24
|
||||
ume_sync_alarms_history_every_hours: int = 24
|
||||
|
||||
|
||||
settings = Settings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue