]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix the add-path code to understand the mpls-vpn safi 3842/head
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 20 Feb 2019 18:54:32 +0000 (15:54 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 21 Feb 2019 02:00:06 +0000 (23:00 -0300)
commit6682bd998c009ef11a9b0a3b64e15f18b0942d12
tree41ff17ed13b5e56d0ed3671a94a8a0dcc6b0a0fd
parentaa6476d5c2e1facd62f96e7a5241032671542325
bgpd: fix the add-path code to understand the mpls-vpn safi

In order to iterate over MPLS VPN routes, it's necessary to use
two nested loops (the outer loop iterates over the MPLS VPN RDs,
and the inner loop iterates over the VPN routes from that RD).

The add-path code wasn't doing this, which was leading to lots of
crashes when add-path was enabled for the MPLS VPN SAFI. This patch
fixes the problem.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_addpath.c