Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for injecting static routes #2860

Open
williamdes opened this issue Dec 8, 2024 · 4 comments
Open

Add support for injecting static routes #2860

williamdes opened this issue Dec 8, 2024 · 4 comments

Comments

@williamdes
Copy link

As you can see on the project https://github.com/thepacketgeek/bgpd-rs there is a very simple section to inject routes into sessions.

Is there a limitation on this project to implement injecting routes into bgp peers?

To avoid a dependency on frr to get the routes to announce.

@fujita
Copy link
Member

fujita commented Jan 10, 2025

You can add any routes to gobgpd via the gRPC APIs.

@EmilyShepherd
Copy link

You can add any routes to gobgpd via the gRPC APIs.

Is there any documentation for this?

@floatingstatic
Copy link
Contributor

@EmilyShepherd See https://github.com/osrg/gobgp/blob/master/docs/sources/lib.md for an example on adding a route using grpc.

This is also something that can also be done with the gobgp cli utility. Ex:

gobgp global rib add 203.0.113.0/24 nexthop 192.0.2.1 origin igp aspath 200,100 community 100:200
gobgp global rib -a ipv6 add 2001:db8:8000::/34 nexthop 2001:db8::51 origin igp aspath 300,200,100 community 100:300

@smorris76
Copy link

Is there a reason why support for static routes in the config file does not exist? Injecting routes via API or CLI is fine but then requires something to monitor the state of the gobgp process/rib to ensure the routes get readed if the process restarts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants