-
Notifications
You must be signed in to change notification settings - Fork 656
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
Updates to network-instance EVPN models for EVPN redist support #1126
base: master
Are you sure you want to change the base?
Updates to network-instance EVPN models for EVPN redist support #1126
Conversation
* Add a new conditional leaf-lest, "vni-list", to the EVI Vxlan model, to allow the configuration of VLAN-aware-bundle MACVRFs * Make the existing "vni" leaf conditional on the MACVRF being a VLAN-based MACVRF. Since this is the only type of MACVRF currently supported by the model, this is a backwards compatible change
* Introduce new container "local-endpoint-vnis" in Vxlan endpoint model to allow the local configuration of VLAN-to-VNI and VRF-to-VNI mappings
* Add new identity, EVPN_REDISTRIBUTE_TYPE, with values of REDISTRIBUTE_LEARNED, REDISTRIBUTE_STATIC, and REDISTRIBUTE_CONNECTED, for use in configuring types of routes to redistribute in EVPN MACVRFs and IPVRFs * Add new leaf-list "redistribute" to EVI model (which will use the aforementioned EVPN_REDISTRIBUTE_TYPE) for configring types of routes to redistribute in an EVPN MACVRF or IPVRF
/gcbrun |
No major YANG version changes in commit ffe479e |
/gcbrun |
Hi @abamberger-arista, the state tree doesn't match this PR? Where is |
type oc-evpn-types:vni-id; | ||
description | ||
"List of VNIs participating in a VLAN-aware-bundle EVI"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add reference "RFC 7432: BGP MPLS-Based Ethernet VPN section-6.3";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was part of one of the previous PRs that has already merged
../../../config/service-type = 'oc-evpn-types:VLAN_BUNDLE'" { | ||
description | ||
"For VLAN-based and VLAN-bundle EVIs, use a single VNI"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add reference "RFC 7432: BGP MPLS-Based Ethernet VPN section-6";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise, one of the previous PRs that has already merged
That was part of the previous PR (#1125) |
I have the same comment as in the original PR: I don't believe the redistribution is a fundamentally correct approach to control mac/type-2 route distribution. It is an implementation of a specific vendor's CLI, but it doesn't mean it should be adopted in OC as it is. IMO, the baseline EVPN implies that locally learned mac addresses are advertised to neighbors (that's the core rfc7432/rfc8365 behavior). And to my knowledge, this is what most implementations do. A typical L2 EVPN instance will not be properly functioning without the type-2 routes. While it is true that there are certain use cases where an operator may wish to limit type-2 advertisements, that should not be the default behavior, and the use of redistribution to control that is highly questionable. Last but not least, can you elaborate on this part?
If we are talking about the regular redistribution, then it is already defined by OpenConfig standards. If this is something specific to EVPN, please provide more details as to what, exactly, this feature is supposed to do. |
Change Scope
This is part 3 of splitting the original PR #1108 into 3 separate PRs. This one targets changes required to configure redistribution of routes into EVPN
MACVRFs and IPVRFs can be configured to redistribute different types of MACs and IP Prefixes to their peers. For instance, a MACVRF might be configured to redistribute routes for dynamic MACs learned in the associated local VLANs, but not static MACs configured in those same VLANs.
To support the ability to configure these distribution settings, this change proposes the addition of a “redistribute” leaf list to the EVI subtree, along with a new identity type for types of redistributions to support. This initial proposal has 3 types of redistributions defined, REDISTRIBUTE_LEARNED and REDISTRIBUTE_STATIC, for redistributing dynamically learned and statically configured MACs, respectively, into a MACVRF, and REDISTRIBUTE_CONNECTED, for redistributing connected IP routes into an IPVRF. Additional types of redistribution could be added in later changes.
Because this is a new leaf being added, this change is fully backwards compatible.
New tree state after proposed change (additions in bold):
New Yang Paths:
Platform Implementations
Arista EOS
Redistribution config:
https://www.arista.com/en/um-eos/eos-sample-configurations#xx1247650