mirror of
https://github.com/hansjone/netx.git
synced 2026-10-11 01:43:21 +08:00
Allow compare templates to split one collected metric into filtered sheets.
BGP/ISIS (and any other metric) can share a metric_id with distinct sheet_id + row_filters; drop conflicting bgp state_or_pfx and keep state/pfx_rcd. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
88b7558a48
commit
a65c9fc420
17 changed files with 745 additions and 230 deletions
|
|
@ -44,7 +44,7 @@ class BizMigrationBatch(Base):
|
|||
batch_label: Mapped[str] = mapped_column(String(128), default="")
|
||||
# pending | active | review | done
|
||||
status: Mapped[str] = mapped_column(String(32), default="pending", index=True)
|
||||
# {"ports": ["gei-..."], "items": [{"metric_id":"bgp_peer","key":"..."}]}
|
||||
# {"ports": ["gei-..."], "items": [{"metric_id":"bgp_peer","sheet_id":"bgp_peer.vpnv4","key":"..."}]}
|
||||
expect_set_json: Mapped[dict] = mapped_column(_JsonType, default=dict)
|
||||
started_at: Mapped[datetime | None] = mapped_column(DateTime, nullable=True)
|
||||
ended_at: Mapped[datetime | None] = mapped_column(DateTime, nullable=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue