osrg / gobgp

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

goBGP get all the routes matching particular community #2070

Open ramarkandasamy opened 5 years ago

ramarkandasamy commented 5 years ago

Environment: C++ using GRPC to connect with GoBGP

We have a requirement Mark-and-Sweep to get all routes from GoBGP server and compare with all the local routes. And send AddPath Request and DelPath Request for missing/extra routes in the server.

Local routes will be sent using one particular community string. We need an C++ API to get all routes from goBGP server matching particular community string.

Please help us if we have any know APIs or existing implementation.

nskalis commented 5 years ago

I would like also to be able to query the routing table by a community value. this is a good feature request.

fujita commented 5 years ago

I'm happy to accept to a pull request for this feature. Probably adding something like repeated google.protobuf.Any pattrs to ListPathRequest.