mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 18:10:45 +08:00
Fix ZTE BGP RR *i/RD parsing and add batch collect detail UX.
Decouple heavy CLI parse via ParsePool, keep ECMP/multi-RD keys, and expose per-command CLI lines vs DB rows with raw.txt export. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
4c5738e48e
commit
05357e971e
31 changed files with 1952 additions and 269 deletions
|
|
@ -129,6 +129,13 @@ class BizMigrationRedTicket(Base):
|
|||
__table_args__ = (
|
||||
Index("ix_biz_migration_red_project_status", "project_id", "status"),
|
||||
Index("ix_biz_migration_red_batch", "batch_id"),
|
||||
Index(
|
||||
"ix_biz_migration_red_upsert",
|
||||
"project_id",
|
||||
"metric_id",
|
||||
"match_key_str",
|
||||
"status",
|
||||
),
|
||||
)
|
||||
|
||||
id: Mapped[str] = mapped_column(String(64), primary_key=True, default=lambda: uuid4().hex)
|
||||
|
|
@ -138,6 +145,8 @@ class BizMigrationRedTicket(Base):
|
|||
metric_id: Mapped[str] = mapped_column(String(64), default="", index=True)
|
||||
key_str: Mapped[str] = mapped_column(String(256), default="")
|
||||
new_key_str: Mapped[str] = mapped_column(String(256), default="")
|
||||
# Stable identity for upsert (match_old_key / normalized expect key)
|
||||
match_key_str: Mapped[str] = mapped_column(String(256), default="", index=True)
|
||||
verdict: Mapped[str] = mapped_column(String(32), default="")
|
||||
color: Mapped[str] = mapped_column(String(16), default="red")
|
||||
old_status: Mapped[str] = mapped_column(String(64), default="")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue