]> 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)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 15 Feb 2024 10:07:43 +0000 (12:07 +0200)
commit439b739495e86912c8b9ec36b84e55311c549ba0
tree5216727cd21b967638f999c4769f4bd6974aa4aa
parent2fd5e51d4cb0949ce46f131a59f6cc916e3b5240
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>
lib/routemap.c