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

ListPath or GetRib to get routes based on community #2074

Open
ramarkandasamy opened this issue May 9, 2019 · 1 comment
Open

ListPath or GetRib to get routes based on community #2074

ramarkandasamy opened this issue May 9, 2019 · 1 comment

Comments

@ramarkandasamy
Copy link

Our requirement is to get the routes based on community string. Is there any option in ListPath or GetRib or any other API provides that ?

@netixx
Copy link

netixx commented Jul 8, 2019

+1

I didn't find anything relating to this in the docs and in the API. The only option I see to emulate this feature with the current version is the following (overkill) workflow :

  • create a policy using the API, matching the communities,...
  • define a BGP peer and apply the policy to it
  • start a local gobgp instance, and connect it to the target
  • list path from local BGP instance using the ListPath API
  • hope this does not mess up your network....

This feature is a must have and is present in many (maybe every ?) routers on the market. We are also interested in matching extended and large-communities, but it would be really nice to make it work with any policy. This would, for example, allow the following use-cases:

  • testing a policy before applying it
  • defining policies that look for specific routes (specific communities, internal, external, long routes, routes from specific AS...) and use ListPath requests to show them to the administrator.

The IOS-XR router works like this : you can create a route-policy that is used in a show command to "filter" the output, which makes it really flexible.

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

2 participants