Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Communities revisions #194

Merged
merged 4 commits into from
Nov 24, 2024
Merged

Communities revisions #194

merged 4 commits into from
Nov 24, 2024

Conversation

digizeph
Copy link
Member

This pull request includes several changes aimed at simplifying the display format for BGP communities and enhancing the filtering capabilities with regular expressions. The most important changes are grouped into two themes: display format simplification and filtering enhancements.

Display Format Simplification:

Filtering Enhancements:

previously, we have put prefixes like `lg:` or `ecv6` to indicating the
exact type of community it is. however, this is not a standard output
and users prefer to see just simple colon-separated number strings as
community values instead. this is particular the case for large
communities where other tools like bgpdump do not have prefixes, making
bgpkit-parser output non-comformant to popular tools.

this is potentially a breaking change for users who relies on elem
outputs instead of matching the actual community values to detect
specific community types.
this allows the filtering process to reuse the same regex instead of
reconstructing the regex on *every* AS path, which was a very
inefficient way of doing filtering.
@digizeph digizeph requested a review from Copilot November 24, 2024 15:50
Copy link

codecov bot commented Nov 24, 2024

Codecov Report

Attention: Patch coverage is 99.13043% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.91%. Comparing base (f73edc6) to head (f323768).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/parser/filter.rs 98.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
+ Coverage   92.81%   92.91%   +0.09%     
==========================================
  Files          70       70              
  Lines        8409     8449      +40     
==========================================
+ Hits         7805     7850      +45     
+ Misses        604      599       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no suggestions.

@digizeph digizeph merged commit 8763860 into main Nov 24, 2024
4 checks passed
@digizeph digizeph deleted the communities-revisions branch November 24, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[issue] fix community value representations
1 participant