]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: fix prefix VRF leaking with 'network import-check' (4/5)
authorLouis Scalbert <louis.scalbert@6wind.com>
Fri, 29 Apr 2022 12:26:04 +0000 (14:26 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 16 Dec 2022 13:52:47 +0000 (14:52 +0100)
commit1e24860bf7042a96bc0f22df60f73e7aa04f31f6
treeb071a114061a60944b14b5e7a47183b849c8e405
parentd0a55f87e9cd4d67e9514f31cfe589eeaec0ed4a
bgpd: fix prefix VRF leaking with 'network import-check' (4/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 if the
'rt import' statement is defined after the 'network <prefix>' ones.

When a prefix nexthop is updated, update the prefix route leaking. The
current state of nexthop validation is now stored in the attributes of
the bgp path info. Attributes are compared with the previous ones at
route leaking update so that a nexthop validation change now triggers
the update of destination VRF BGP table.

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