]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix "show bgp statistics" for the VPN safi 4052/head
authorRenato Westphal <renatowestphal@gmail.com>
Sat, 30 Mar 2019 03:53:16 +0000 (00:53 -0300)
committerRenato Westphal <renatowestphal@gmail.com>
Sat, 30 Mar 2019 04:09:23 +0000 (01:09 -0300)
commit9c14ec72178cbdc30bee629f531c6531d60ddd9d
tree28bce0487704ebb579d40de529425063d08f04b8
parentb1ec871ab1bf9fe1cde786df87765537a25a9e92
bgpd: fix "show bgp statistics" for the 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 bgp_table_stats_walker() function wasn't giving this special
treatment to the MPLS VPN safi as it should, which was leading to
crashes and malfunctioning. Fix this.

Signed-off-by: Renato Westphal <renatowestphal@gmail.com>
bgpd/bgp_route.c