]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix do not export VPN prefix when no SID available on the VRF
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 20 Mar 2025 15:11:59 +0000 (16:11 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 24 Mar 2025 08:17:01 +0000 (09:17 +0100)
commit914931ed367a047577c5b084aa4bc025e0eefd4a
tree94d9e0527a8ac06e18a03ba1cd92139dfc429ef0
parent7b55ca7f1c22c70bd6fd1f7d5ebdcdde62bd9f19
bgpd: fix do not export VPN prefix when no SID available on the VRF

When detaching the locator from the main BGP instance, the used SIDs
and locators are removed from the srv6 per-afi or per-vrf contects.
Under those conditions, it is not possible to attempt to export new
VPN updates. Do invalidate the nexthop for leaking.

Restrict the control for exported VPN prefixes and not for unicast
imported prefixes.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h