Fix vpnv6 ECMP under-parse and persist full CLI line counts.

RR vpnv6 wrap lines with next-hop+metrics were collapsing ECMP legs; store raw_line_count/declared_total before DB truncate so collect stats stay accurate.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-23 14:53:19 +08:00
parent 86fcb98218
commit ac53af4a5d
16 changed files with 531 additions and 35 deletions

View file

@ -285,7 +285,8 @@ const en = {
batchId: "Batch ID",
copyBatchId: "Copy batch ID",
batchMessageEmpty: "No message or error",
batchCmdSummary: "{{ok}} ok / {{fail}} failed / {{other}} other · {{total}} commands",
batchCmdSummary:
"{{ok}} ok / {{fail}} failed / {{skipped}} skipped / {{other}} other · {{total}} counted (batch {{batchCmds}} cmds)",
sheetCommands: "Commands",
sheetLldp: "LLDP neighbors",
sheetVrfRoute: "VRF route summary",
@ -305,6 +306,7 @@ const en = {
rawLogTitle: "Raw collect log",
rawLogEmpty: "No raw output",
rawLogStats: "{{lines}} lines collected · {{rows}} rows stored",
rawLogDeclared: "declared {{declared}}",
openWorkbook: "Open workbook",
filterColumn: "Column",
filterAllCols: "All columns",
@ -322,6 +324,7 @@ const en = {
colTime: "Time",
colRows: "DB rows",
colRawLines: "CLI lines",
colDeclared: "Declared",
colActions: "Actions",
colCommand: "Command",
colMessage: "Message",

View file

@ -285,7 +285,8 @@ const zh = {
batchId: "批次 ID",
copyBatchId: "复制批次 ID",
batchMessageEmpty: "无额外说明或报错",
batchCmdSummary: "命令 {{ok}} 成功 / {{fail}} 失败 / {{other}} 其他 · 共 {{total}} 条",
batchCmdSummary:
"命令 {{ok}} 成功 / {{fail}} 失败 / {{skipped}} 跳过 / {{other}} 其他 · 统计 {{total}} 条(批次计数 {{batchCmds}})",
sheetCommands: "命令",
sheetLldp: "LLDP 邻居",
sheetVrfRoute: "VRF 路由摘要",
@ -305,6 +306,7 @@ const zh = {
rawLogTitle: "原始采集日志",
rawLogEmpty: "无原始输出",
rawLogStats: "采集 {{lines}} 行 · 入库 {{rows}} 条",
rawLogDeclared: "声明 {{declared}}",
openWorkbook: "打开工作簿",
filterColumn: "筛选列",
filterAllCols: "全部列",
@ -322,6 +324,7 @@ const zh = {
colTime: "时间",
colRows: "入库条数",
colRawLines: "采集行数",
colDeclared: "设备声明",
colActions: "操作",
colCommand: "命令",
colMessage: "说明",