]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix bgp node created at withdraw event
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 28 Sep 2023 15:59:22 +0000 (17:59 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 21 Nov 2023 17:10:38 +0000 (18:10 +0100)
commitb43ea569d99e8bc1225d0edbc93cec9f0fd7978b
treed1e2332fc3cf0b42619873d4d16f026d8995c86a
parente746985295ebe6b116300925677f661dd0db71cc
bgpd: fix bgp node created at withdraw event

The prefixes unexportation triggers an attempt to create
the VPN prefix node if that prefix was not already present.

For instance, if a given prefix is not exported because of
a route-map filtering, the withdraw process will try to
create the node with the 'bgp_afi_node_get()' command.

Fix this by replacing this call by the 'bgp_safi_node_lookup()'
function.

Fixes: ddb5b4880ba8 ("bgpd: vpn-vrf route leaking")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_mplsvpn.c