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:
oliver 2026-09-20 09:58:26 +08:00
parent 1642a0adec
commit a769e603b7
10 changed files with 18 additions and 320 deletions

View file

@ -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);