The problem is that peer_af_array returns NULL when SAFI is changed to
unicast. We use unicast table, but peer is created and activated under
labeled-unicast, hence we should lookup with a proper SAFI id.
Without this patch peer_af_find() returns NULL and we can't show
PfxSnt in `show bgp summary`.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
}
}
- paf = peer_af_find(peer, afi, pfx_rcd_safi);
+ paf = peer_af_find(peer, afi, safi);
filter = &peer->filter[afi][safi];
count++;