]> git.puffer.fish Git - mirror/frr.git/commit
lib: Do not convert EVPN prefixes into IPv4/IPv6 if not needed
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 15 Feb 2024 10:07:43 +0000 (12:07 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 23 Feb 2024 07:15:14 +0000 (07:15 +0000)
commit093f6fa5106c113b70de31dcdbde78be911d7aeb
tree09dc8bb9bb686f74f47528d5b4747353d7a8b89e
parent9a3284c2b55f79e3efba999695b50ddc8ef51564
lib: Do not convert EVPN prefixes into IPv4/IPv6 if not needed

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>
(cherry picked from commit 439b739495e86912c8b9ec36b84e55311c549ba0)
lib/routemap.c