-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
lib: Do not convert EVPN prefixes into IPv4/IPv6 if not needed #15377
lib: Do not convert EVPN prefixes into IPv4/IPv6 if not needed #15377
Conversation
Convert only when this is really needed, e.g. `match ip address prefix-list ...`. Otherwise, we can't have mixed match clauses, like: ``` match ip address prefix-list p1 match evpn route-type prefix ``` This won't work, because the prefix is already converted, and we can't extract route type, vni, etc. from the original EVPN prefix. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Test prefix-list matching and some other EVPN stuff. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
@taspelund can you take a look at this? This seems to be backing out your routemap change |
I've had my head out of the code for a while, but this change seems like it might break prefix-list matching for the IP/IP-prefix within Type-2/5 routes that sworley added a while back. (IIRC I just did some back porting of his code?) If we have tests that confirm that prefix-lists still match IP/IP-Prefix carried by RT-2/5 routes after this change, then I'm okay with it. But it's a nack from me if that functionality is lost |
It works with EVPN prefix matching (= Sworley's work works fine, with no breaking changes). |
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.
looks good
@Mergifyio backport dev/10.0 stable/9.1 stable/9.0 stable/8.5 |
✅ Backports have been created
|
lib: Do not convert EVPN prefixes into IPv4/IPv6 if not needed (backport #15377)
No description provided.