Skip to content

Add rib reconstruction command#119

Open
digizeph wants to merge 2 commits intomainfrom
dev/update-rib-docs
Open

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

Conversation

@digizeph
Copy link
Member

@digizeph digizeph commented Mar 15, 2026

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant