Replies: 1 comment 3 replies
-
What you're describing is pure EBGP case, and the handling of RTs is a well-understood problem. Cumulus deals with it by ignoring the AS number in the RT, Nexus OS has a nerd knob... It has nothing to do with bgp.local_as -- that's caused by the crazy desire to run IBGP over EBGP because vendors can't get their shit together and implement EVPN properly -- or allow-own-as -- that's caused by another desire to use the same AS number on all spines while ignoring the realities of what that implies. All these things are also well-understood by the few people who want to know the details, and glossed over in vendor designs. It somewhat surprises me that most EVPN platforms (apart from the ones I implemented ;) claim to handle EBGP-only design, and yet we're still having this discussion. Ranting aside, what you're proposing would break the moment you'd get another idea to build a non-trivial topology (hub-and-spoke VLANs emulating private VLANs come to mind), but we already have the behavior you want -- the AS part of RT/RD values for global VRFs is built from global bgp.as or vrf.as (when there's no global bgp.as). We just have to extend that behavior to VLANs instead of building VLAN RD/RT values on-the-fly in node_post_transform hook. It probably makes sense to use evpn.as as the fallback value, as you might build an EVPN network without VRFs. |
Beta Was this translation helpful? Give feedback.
-
Looking at https://www.ipspace.net/Data_Center_BGP/BGP_in_EVPN-Based_Data_Center_Fabrics
The way things are currently modeled, we can only realize that topology using
bgp.local_as
tricks and customallow-own-as
knobs. The reason is that EVPN route targets default to <bgp.as>:<vlan.id>, and hence won't match in an EBGP topologyIf we were to introduce an
evpn.as
parameter and configure evpn.rt as\<evpn.as or bgp.as\>:\<vlan.id\>
we could instead assign every node its ownbgp.as
value and simplify the configuration.Any thoughts or objections?
Beta Was this translation helpful? Give feedback.
All reactions