Skip to content

docs: EVPN MAC mobility example and the changelog link - #356

Merged
digizeph merged 1 commit into
mainfrom
docs/evpn-example
Oct 28, 2026
Merged

digizeph merged 1 commit into
mainfrom
docs/evpn-example

Conversation

@digizeph

Copy link
Copy Markdown
Member

Follow-up to #355.

  • examples/evpn_mac_mobility.rs decodes 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.
  • The examples README lists it under the BMP entries.
  • The changelog entries gained their PR link, which only exists after the merge.

No library change.

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.
Copilot AI balanced review requested due to automatic review settings October 28, 2026 03:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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);
@digizeph
digizeph merged commit 4019315 into main Oct 28, 2026
10 checks passed
@digizeph
digizeph deleted the docs/evpn-example branch October 28, 2026 03:22
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