Skip to content

Fix srlinux vrf leaking policies and decouple them from BGP EVPN#3531

Open
jbemmel wants to merge 3 commits into
ipspace:devfrom
jbemmel:fix-srlinux-vrf-leaking-policies
Open

Fix srlinux vrf leaking policies and decouple them from BGP EVPN#3531
jbemmel wants to merge 3 commits into
ipspace:devfrom
jbemmel:fix-srlinux-vrf-leaking-policies

Conversation

@jbemmel

@jbemmel jbemmel commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Inspired by recent work on Bird route leaking, I revisited SR Linux route leaking policies and realized they had some issues.
Primarily, they assumed route leaking only works with BGP EVPN

Fixes:

  • Move general policies from BGP module to bgp macro, such that a vrf-only scenario also instantiates them
  • Replace BGP community based approach with native route leaking policies
  • Enable dynamic host routes in VRF route leaking scenario's
  • Tweak redistribution policies

I included the test that illustrates the use case which triggered the PR, feel free to remove it from the final merge

Tested:
./device-module-test -d srlinux -p clab vrf
./device-module-test -d srlinux -p clab bgp
./device-module-test -d srlinux -p clab evpn

jbemmel and others added 3 commits June 25, 2026 09:34
Use shared SR Linux BGP policy primitives in all BGP config paths and match inter-instance leaked routes with SRL-native policy conditions so VRF-only route leaking can feed OSPF.

Co-authored-by: Cursor <cursoragent@cursor.com>
Enable dynamic ARP/ND host-route population from the VRF template so leaked local subnets can forward to attached hosts.

Co-authored-by: Cursor <cursoragent@cursor.com>
Allow SR Linux VRF route leaking without requiring EVPN now that inter-instance policies handle non-EVPN leaks.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jbemmel jbemmel requested a review from ipspace June 25, 2026 17:06
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.

1 participant