Skip to content

feat: implement EVPN Type 5 path construction in GoBGP runtime#126

Merged
privateip merged 1 commit into
pr/1c-corefrom
pr/2-evpn
Jun 23, 2026
Merged

feat: implement EVPN Type 5 path construction in GoBGP runtime#126
privateip merged 1 commit into
pr/1c-corefrom
pr/2-evpn

Conversation

@privateip

Copy link
Copy Markdown
Contributor

Summary

Replace the ErrEVPNNotImplemented stub with a real implementation that builds and advertises EVPN Type 5 IP Prefix routes.

Changes

  • Build EVPN Type 5 IP Prefix paths for each SRv6 endpoint prefix in a BGPAdvertisement
  • Route distinguisher derived from BGPRouter routerID (Type 1 IP-address:0)
  • MpReachNLRI next-hop is the node's primary IPv6 address
  • Route target communities parsed from the advertisement's communities field
  • Support withdrawals via b.DeletePath
  • Add configurable BGP_LISTEN_PORT env var to galactic-router (port 1790, since port 179 is occupied by FRR underlay)
  • go.mod: add k8s.io/api dependency

Dependencies

Replace the ErrEVPNNotImplemented stub with a real implementation that
builds and advertises EVPN Type 5 IP Prefix routes for each SRv6
endpoint prefix in a BGPAdvertisement.

- Route distinguisher derived from BGPRouter routerID (Type 1 IP:0)
- MpReachNLRI next-hop is node's primary IPv6 address
- Route target communities parsed from advertisement's communities field
- Support withdrawals via b.DeletePath
- Add configurable BGP_LISTEN_PORT env var for tenant GoBGP instance

Co-authored-by: Claude <noreply@anthropic.com>
@privateip privateip requested a review from a team as a code owner June 23, 2026 19:47
@privateip privateip requested review from 0xmc and removed request for a team June 23, 2026 19:47
@privateip privateip merged commit 4064136 into pr/1c-core Jun 23, 2026
1 check passed
@privateip privateip deleted the pr/2-evpn branch June 23, 2026 20:15
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