feat: add as2rel command for AS-level relationship lookup #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add new
monocle as2relcommand to query AS-level relationships between Autonomous Systems using BGPKIT's AS relationship data from data.bgpkit.com/as2rel.Features
connected: Percentage of collectors seeing any connectionpeer: Percentage seeing pure peering (connected - upstream - downstream)as1_upstream: Percentage seeing asn1 as upstream of asn2as2_upstream: Percentage seeing asn2 as upstream of asn1count / max_peers_count * 100%--sort-by-asn)--show-name)--json)Example Usage
New Files
src/datasets/as2rel.rs: Library module with SQLite cachingsrc/bin/commands/as2rel.rs: CLI command implementationOther Changes
lookup_org_names_batch()method to as2org module for performance