summaryrefslogtreecommitdiff
path: root/lib/lib_errors.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2023-06-01 07:20:06 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-06-16 10:55:17 +0200
commitb9c7e7a1a9ab22e83571652ff092bb519a7386f7 (patch)
treeeea95d39e79bd87a6fce58770e16ef2107f0d3ce /lib/lib_errors.h
parent346607c7d3f91fe5b08657642ef92e79299737b2 (diff)
bgpd: fix use nexthop tracking for exported vpn paths
When exporting redistributed prefixes from a given VRF to an MPLS VPN network, the paths are always considered as valid whereas it should not always be the case. At exportation, a new MPLS VPN path is built in. Then nexthop tracking is applied to the new path, and the SAFI_MPLS_VPN parameter is used to tell the NHT code to just check for the next-hop reachability. The previous commit was wrongly considering that nexthop tracking was never applied to mpls vpn networks. Ensure that nexthop tracking for exported paths behaves as usual. Fix this by not returning always 1 in the 'bgp_find_or_add_nexthop()' function if the passed 'pi' parameter is a 'BGP_IMPORTED_ROUTE' sub-type entry. Fixes: 74be3f3ea9ec ("bgpd: track mpls vpn nexthops") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/lib_errors.h')
0 files changed, 0 insertions, 0 deletions