mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 02:00:46 +08:00
Remove fake VRF Route Summary collect item.
Drop the route-summary profiles/parser/persist path; keep VRF list discover for bindings and strip it from default cutover templates. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
1642a0adec
commit
a769e603b7
10 changed files with 18 additions and 320 deletions
|
|
@ -133,7 +133,7 @@ src/
|
|||
- Phase1:LLDP 邻居快照;建任务默认启用对应厂商 LLDP profile;支持自定义只采不解析行
|
||||
- Phase2:比对模板(多监控表 / Key·接口·比对字段;空比对=仅条目)、端口映射、CompareJob 列表与详情、先选批次再按 Excel sheet 看 pre/post、`/network/tasks/biz-compare`
|
||||
- API 补充:`GET /v1/biz-state/compare/metrics`;模板 `metrics[]` 多表结构
|
||||
- Phase3:VRF 发现→人选关联→带参采集(`*.route_vrf_summary`);`PUT …/items/{id}/bindings`
|
||||
- Phase3:VRF 发现(`*.vrf_list`)供带参采集绑定;`PUT …/items/{id}/bindings`
|
||||
- 调度:`NETX_BIZ_STATE_SCHEDULER_ENABLED`(默认开),tick `NETX_BIZ_STATE_SCHEDULER_TICK_SEC`
|
||||
- 前端:`/network/tasks/biz-state`(勾选监控项 / 发现 VRF / 批次 / 导出 zip)
|
||||
|
||||
|
|
|
|||
|
|
@ -154,7 +154,6 @@ function columnsFromRows(rows: Record<string, unknown>[]): SheetCol[] {
|
|||
function metricSheetTitle(metricId: string, t: (k: string) => string): string {
|
||||
const map: Record<string, string> = {
|
||||
lldp_neighbor: t("bizState.sheetLldp"),
|
||||
vrf_route_summary: t("bizState.sheetVrfRoute"),
|
||||
isis_adjacency: t("bizState.sheetIsis"),
|
||||
interface_brief: t("bizState.sheetIfaceBrief"),
|
||||
arp: t("bizState.sheetArp"),
|
||||
|
|
@ -174,9 +173,6 @@ function rowsForMetric(batch: any, metricId: string): Record<string, unknown>[]
|
|||
if (mid === "lldp_neighbor") {
|
||||
return ((batch?.lldp_neighbors || []) as Record<string, unknown>[]) || [];
|
||||
}
|
||||
if (mid === "vrf_route_summary") {
|
||||
return ((batch?.vrf_route_summary || []) as Record<string, unknown>[]) || [];
|
||||
}
|
||||
return Array.isArray(fromGeneric) ? (fromGeneric as Record<string, unknown>[]) : [];
|
||||
}
|
||||
|
||||
|
|
@ -215,7 +211,6 @@ function buildBatchSheets(batch: any, t: (k: string) => string): SheetDef[] {
|
|||
for (const c of cmds) pushMid(String(c.metric_id || ""));
|
||||
for (const mid of Object.keys(batch?.metrics || {})) pushMid(mid);
|
||||
if ((batch?.lldp_neighbors || []).length) pushMid("lldp_neighbor");
|
||||
if ((batch?.vrf_route_summary || []).length) pushMid("vrf_route_summary");
|
||||
|
||||
for (const mid of metricOrder) {
|
||||
const rows = rowsForMetric(batch, mid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue