]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix `match peer` when switching between IPv4/IPv6/interface
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 16 May 2024 17:49:56 +0000 (20:49 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 16 May 2024 17:49:56 +0000 (20:49 +0300)
commitedfc03614f0c5e14cffde25afae111908cb3bf30
treec5f1313004d44ecc8abf5019ff64ca30d3da5214
parent03e3da09a8521ef5aad82aad1635515d69e46ae0
bgpd: Fix `match peer` when switching between IPv4/IPv6/interface

Without this patch we MUST follow this sequence:

```
no match peer 10.0.0.1
match peer 2a01::1
```

Otherwise, both IPv4/IPv6 values are set/compiled, thus when printing the
configuration in show running, we see the first one (IPv4).

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_routemap.c