Skip to content

feat: add support for BMP RFCs 9515, 9736, and 9972#286

Merged
digizeph merged 2 commits into
mainfrom
feature/bmp-rfcs-9515-9736-9972
May 24, 2026
Merged

feat: add support for BMP RFCs 9515, 9736, and 9972#286
digizeph merged 2 commits into
mainfrom
feature/bmp-rfcs-9515-9736-9972

Conversation

@digizeph
Copy link
Copy Markdown
Member

Adds support for three recent BMP-related RFCs:

  • RFC 9515 — registration procedures update (README/docs only)
  • RFC 9736 — independent Peer Up TLV namespace; switches Initiation and Peer Up TLV enums to _FromPrimitive_ with catch-all for forward compatibility
  • RFC 9972 — 26 new BMP statistics types for Adj-RIB-In/Adj-RIB-Out monitoring

All changes are backward-compatible. Unknown TLV types are now gracefully handled per RFC 7854.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.69%. Comparing base (2e75811) to head (7b97917).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #286      +/-   ##
==========================================
+ Coverage   89.66%   89.69%   +0.02%     
==========================================
  Files          86       86              
  Lines       18289    18334      +45     
==========================================
+ Hits        16399    16444      +45     
  Misses       1890     1890              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for recent BMP RFC updates by expanding BMP statistics type coverage (RFC 9972), separating Peer Up vs Initiation TLV namespaces and making TLV parsing forward-compatible (RFC 9736), and updating RFC support documentation (RFC 9515/9736/9972).

Changes:

  • Add new StatType variants for advanced Adj-RIB-In/Adj-RIB-Out monitoring statistics (RFC 9972).
  • Split Initiation vs Peer Up TLV namespaces and switch TLV parsing to FromPrimitive + catch-all to tolerate unknown TLVs (RFC 9736).
  • Update crate/docs RFC support list (RFC 9515, 9736, 9972).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/parser/bmp/messages/stats_report.rs Adds new BMP statistics type enum variants for RFC 9972.
src/parser/bmp/messages/peer_up_notification.rs Introduces independent Peer Up TLV namespace + unknown-type handling (RFC 9736).
src/parser/bmp/messages/initiation_message.rs Updates Initiation TLV namespace + unknown-type handling (RFC 9736).
src/parser/bmp/error.rs Removes now-unused error conversions tied to TryFromPrimitive TLV parsing.
src/lib.rs Updates RFC support documentation list.
README.md Updates RFC support documentation list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/parser/bmp/messages/stats_report.rs Outdated
Comment thread src/parser/bmp/messages/stats_report.rs Outdated
Comment thread src/parser/bmp/messages/initiation_message.rs
Comment thread src/parser/bmp/messages/peer_up_notification.rs
Comment thread src/parser/bmp/messages/initiation_message.rs
- RFC 9515: administrative registration procedures update (docs only)
- RFC 9736: separate Peer Up TLV namespace from Initiation TLVs; switch
to FromPrimitive with catch-all for forward compatibility
- RFC 9972: add 26 new StatType variants for Adj-RIB-In/Adj-RIB-Out
monitoring statistics
@digizeph digizeph force-pushed the feature/bmp-rfcs-9515-9736-9972 branch from e9bf17c to 31e5c36 Compare May 24, 2026 18:02
@digizeph digizeph enabled auto-merge May 24, 2026 18:06
@digizeph digizeph merged commit 6e460f4 into main May 24, 2026
6 checks passed
@digizeph digizeph deleted the feature/bmp-rfcs-9515-9736-9972 branch May 24, 2026 18:07
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.

2 participants