Skip to content
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

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

ton31337
Copy link
Member

No description provided.

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>
@frrbot frrbot bot added libfrr tests Topotests, make check, etc labels Feb 15, 2024
@donaldsharp
Copy link
Member

@taspelund can you take a look at this? This seems to be backing out your routemap change

@taspelund
Copy link

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

@ton31337
Copy link
Member Author

It works with EVPN prefix matching (= Sworley's work works fine, with no breaking changes).

Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@riw777 riw777 merged commit 8dbfc57 into FRRouting:master Feb 20, 2024
13 checks passed
@ton31337 ton31337 deleted the fix/bgpd_evpn_route_map branch February 23, 2024 07:14
@ton31337
Copy link
Member Author

@Mergifyio backport dev/10.0 stable/9.1 stable/9.0 stable/8.5

Copy link

mergify bot commented Feb 23, 2024

backport dev/10.0 stable/9.1 stable/9.0 stable/8.5

✅ Backports have been created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants