osrg / gobgp

BGP implemented in the Go Programming Language
https://osrg.github.io/gobgp/
Apache License 2.0
3.66k stars 699 forks source link

GetTable gRPC call always returns number of accepted routes = 0 #2785

Open suyogbhobe opened 8 months ago

suyogbhobe commented 8 months ago

I don't have an import or export policy configured.
When I make the gRPC call "GetTable" for global table, it returns number of destinations, number of accepted routes, and number of paths. Number of destinations and paths is correct but number of accepted routes is always 0.

Note that this issue is also seen in gobgp-exporter and _gobgp_route_accepted_pathcount is always 0.

What is strange is that when I use the CLI "gobgp neighbor ", it shows the correct value for number of accepted routes under "Route Statistics".