From: Philippe Guibert Date: Fri, 14 Feb 2020 14:25:36 +0000 (+0100) Subject: bgpd: permit to get statistics for other bgp safis X-Git-Tag: base_7.4~87^2~6 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b9f4d96f23d994f95245c190f80252387a475d18;p=matthieu%2Ffrr.git bgpd: permit to get statistics for other bgp safis safis that use a route distinguisher in bgp tables, and as such introduce a two level hierarchy on the bgp table, must be made available to statistics too. Signed-off-by: Philippe Guibert --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 522fb16b02..687f969c3f 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -11209,7 +11209,9 @@ static int bgp_table_stats_walker(struct thread *t) ts->counts[BGP_STATS_MAXBITLEN] = space; for (rn = top; rn; rn = bgp_route_next(rn)) { - if (ts->table->safi == SAFI_MPLS_VPN) { + if (ts->table->safi == SAFI_MPLS_VPN || + ts->table->safi == SAFI_ENCAP || + ts->table->safi == SAFI_EVPN) { struct bgp_table *table; table = bgp_node_get_bgp_table_info(rn);