]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Treat numbered community-list only if it's in a range 1-500
authorDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 30 Oct 2024 08:45:28 +0000 (10:45 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 5 Nov 2024 15:17:25 +0000 (15:17 +0000)
commit8d1ade44be3cb85afc31fa26cc51592e2fe7c41b
treea23b9012f88b3ddeebee74b59303f23a31195b73
parent02f4fef5ffd88923c63f219b9a118221ea800d80
bgpd: Treat numbered community-list only if it's in a range 1-500

Before this patch, if we set something like:

```
bgp extcommunity-list expanded 1234 permit admin
```

In running config we have:

```
bgp extcommunity-list 1234 seq 5 permit admin
```

That leads to incorrect rendering, even more the line can't be deleted.

With this fix we treat numbered community-list only if it's inside the range
1-500, otherwise it's a non-numbered clist.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 4c1ee29116aff081f63b1fc7dad18cbfe1b8007f)
bgpd/bgp_clist.c
bgpd/bgp_clist.h