osrg / gobgp

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

EVPN BGP Encapsulation Extended Community #311

Closed ghost closed 9 years ago

ghost commented 9 years ago

Is there any way to set the BGP encapsulation extended community attribute on routes ( https://tools.ietf.org/html/rfc5512#section-4.5 ) generated by the "rib add <> -a evpn" commands?

ishidawataru commented 9 years ago

Hi @sevid !

Currently no. I will write a patch to add such way shortly. The format I'm planning is

$ gobgp global rib add -a evpn macadv <mac address> <ip address> <etag> <label> rd <rd> rt <rt> [encap <encap type>]
<encap type> : [ l2tpv3 | gre | ip-in-ip | vxlan | nvgre | mpls | mpls-in-gre | vxlan-gre ]

What do you think ?

ishidawataru commented 9 years ago

How about this? https://github.com/osrg/gobgp/commit/bb6df0687cc7d5c57c10e715c68cc68cfc34b330

ghost commented 9 years ago

Yes, it is working! Thank you, this is very cool.

ishidawataru commented 9 years ago

Thanks for the check. pushed to the master.