]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix prefix VRF leaking with 'network import-check' (1/5)
authorLouis Scalbert <louis.scalbert@6wind.com>
Thu, 28 Apr 2022 16:32:20 +0000 (18:32 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 16 Dec 2022 13:52:47 +0000 (14:52 +0100)
commit0f001a82a862df4dfd105264f75b901927b7597a
treee8a037382abb7ae72ae789e1572b19557729bf08
parent1c4c40696f5526ef7e8684a268f414c962346007
bgpd: fix prefix VRF leaking with 'network import-check' (1/5)

If 'network import-check' is defined on the source BGP session, prefixes
that are stated in 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.

It fixes the issue when the 'rt import' statement is defined after the
'network' ones.

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