Hey Iwase,
> Hi Albert,
> Would you mind keeping mailing list?
> I think it is very helpful for us to share your great perspective!
No problem, I thought to avoid cluttering up the list, but you're right.
After I sent the message I searched some more and oops, I think I
might have answered by own question. It seems I'm a bit clearer in the
mind today. Searching for 'create_rt_extended_community' in the source
I read the code in yu/services/protocols/bgp/info_base/vrf.py and it
appears this does the trick:
evpn_route_dist='{}:{}'.format(loopback_IPv4, vni+22767)
evpn_rt_auto = '{}:{}'.format(local_AS, vni)
speaker.vrf_add(
route_dist=evpn_route_dist,
route_family=RF_L2_EVPN,
import_rts=[evpn_route_dist, evpn_rt_auto],
export_rts=[evpn_route_dist, evpn_rt_auto],
)
Looking at your answer, this looks like the way to go.
I'll have a look at the actual BGP UPDATE message to see if we're right.
I can tell you however that some simple tests seem to indicate it
works with Cisco NX-OS. I'll do some more in-depth testing later.
And I'll prepare a patch for the 'allow local AS in path' functionality.
Cheers,
Albert
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel