osrg/gobgp

Is there a way to add BGP extended communities like encapsulation and origin via rib add command?

AnanthNantha opened this issue · 3 comments

Hi, i am trying to add ipv4-l3vpn route via rib add cli. I could RT which is one of the BGP extended community. But I am not able to add other extended communities like encapsulation and origin. Can someone let me if this possible or not?

Examples does not cover extended communities. Even in CLI syntax i do not see any option for extended communities. Looks like we can add it via policies.

https://github.com/osrg/gobgp/blob/master/docs/sources/cli-command-syntax.md#35-operations-for-extcommunityset---adddelshow--

But even in that, only Route Target (RT) and Soo (Source of Origin) is supported. Enacapsulation is not supported.

fujita commented

If you can't find, likely the CLI doesn't support. Only via gRPC APIs.