]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix VRF leaking with 'network import-check' (1/4)
authorLouis Scalbert <louis.scalbert@6wind.com>
Thu, 28 Apr 2022 16:32:20 +0000 (18:32 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Mon, 29 Jan 2024 09:30:37 +0000 (10:30 +0100)
commit6de0cd9bdfbdac6a38ac2206d4257d951422aff6
tree4a0a42e6cd3ba3395b04fbaaf7f228fd32036dfc
parentd4f83c2cbeeab658b11d9b745c4a2fbd2821de80
bgpd: fix VRF leaking with 'network import-check' (1/4)

If 'bgp network import-check' is defined on the source BGP session,
prefixes that are defined with the network command cannot be leaked to
the other VRFs BGP table even if they are present in the origin VRF RIB.

Always validate the nexthop of BGP static routes (i.e. defined with the
network statement) if 'network import-check' is defined on the source
BGP session and the prefix is present in source RIB.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgp_mplsvpn.c