Commit 439b739
committed
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 <[email protected]>1 parent 2fd5e51 commit 439b739
1 file changed
+5
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2548 | 2548 | | |
2549 | 2549 | | |
2550 | 2550 | | |
2551 | | - | |
2552 | 2551 | | |
2553 | 2552 | | |
2554 | 2553 | | |
| |||
2571 | 2570 | | |
2572 | 2571 | | |
2573 | 2572 | | |
2574 | | - | |
2575 | | - | |
2576 | | - | |
2577 | | - | |
2578 | | - | |
2579 | | - | |
2580 | 2573 | | |
2581 | | - | |
2582 | | - | |
2583 | | - | |
2584 | | - | |
2585 | | - | |
2586 | | - | |
2587 | | - | |
2588 | | - | |
2589 | | - | |
2590 | | - | |
2591 | | - | |
2592 | | - | |
2593 | | - | |
2594 | | - | |
2595 | | - | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
2596 | 2579 | | |
2597 | 2580 | | |
2598 | | - | |
2599 | 2581 | | |
2600 | 2582 | | |
2601 | 2583 | | |
| |||
2619 | 2601 | | |
2620 | 2602 | | |
2621 | 2603 | | |
2622 | | - | |
2623 | 2604 | | |
2624 | 2605 | | |
2625 | 2606 | | |
| |||
0 commit comments