Repository navigation
docs: EVPN MAC mobility example and the changelog link - #356
Merged
Merged
Conversation
The example walks a BMP capture and prints one line per EVPN route, which is what a reader needs to see a MAC move as BGP state: the same MAC advertised from two VTEPs with MAC Mobility sequence 1 through 4, each claim preceded by a withdrawal. It runs on the committed capture by default, so the output above it in the README is what the example actually prints. Links the changelog entries to the merged PR.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The example incorrectly applies an announcement’s MAC Mobility sequence to withdrawn routes when an UPDATE contains both MP_REACH_NLRI and MP_UNREACH_NLRI; sequence extraction must be limited to announced routes.
1 open issue
What changed in this PR
Adds a runnable example of the EVPN support introduced in #355, using the committed BMP capture to show MAC mobility events. No library code changes.
Changes:
- Adds an example that prints EVPN route details and MAC Mobility sequence numbers.
- Lists the example under the BMP examples.
- Links the existing EVPN changelog entries to #355.
| File | Description |
|---|---|
| examples/README.md | Documents the new EVPN BMP example. |
| examples/evpn_mac_mobility.rs | Decodes a BMP capture and displays EVPN announcements and withdrawals. |
| CHANGELOG.md | Adds #355 links to the existing EVPN entries. |
Review effort: Balanced
| .next_hop | ||
| .map(|next_hop| next_hop.global_addr().to_string()) | ||
| .unwrap_or_else(|| "-".to_string()); | ||
| let sequence = mac_mobility_sequence(update); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Follow-up to #355.
examples/evpn_mac_mobility.rsdecodes a BMP capture and prints one line per EVPN route: VTEP, route distinguisher, MAC or prefix, and the MAC Mobility sequence. It defaults to the capture committed with feat: decode EVPN NLRI and the MAC Mobility extended community #355, where one host claims another's MAC and the two leaves trade sequence numbers 1 through 4, so the example demonstrates the feature on a real record instead of a synthetic one.No library change.