Skip to content

Add rib reconstruction command - #119

Closed
digizeph wants to merge 2 commits into
mainfrom
dev/update-rib-docs
Closed

Add rib reconstruction command#119
digizeph wants to merge 2 commits into
mainfrom
dev/update-rib-docs

Conversation

@digizeph

@digizeph digizeph commented Mar 15, 2026

Copy link
Copy Markdown
Member

Summary

  • add monocle rib to reconstruct final RIB state at arbitrary timestamps
  • rebuild each requested rib_ts from the latest prior RIB plus overlapping updates up to the exact target time
  • accept timestamps as positional operands instead of repeated --ts flags
  • support stdout by default and SQLite export via --sqlite-path
  • require --sqlite-path for multi-timestamp runs and write all requested snapshots into one merged SQLite file keyed by rib_ts
  • add --country, --origin-asn, --prefix, --as-path, --peer-asn, --collector, --project, and --full-feed-only filters
  • abort when no prior RIB exists for a requested collector and timestamp
  • update README and changelog for the new command behavior

Examples

monocle rib 2025-09-01T12:00:00Z -c rrc00 -o 13335

monocle rib \
  2025-09-01T12:00:00Z \
  2025-09-01T18:00:00Z \
  --sqlite-path /tmp/rrc00-us.sqlite3 \
  -c rrc00 \
  --country US \
  --full-feed-only
- add rib reconstruction for arbitrary timestamps using base RIBs and replayed updates
- support stdout and SQLite output with country and full-feed filters
- document rib command behavior in the README and changelog
- remove the rib output-type parameter and use --sqlite-path to enable SQLite output
- require --sqlite-path for multi-timestamp rib runs
- update README and changelog for the revised rib CLI
@digizeph
digizeph marked this pull request as draft March 16, 2026 00:53
@digizeph digizeph closed this Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant