]> git.proxmox.com Git - mirror_frr.git/commit - lib/filter.h
lib: fix prefix-list duplication check
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 10 Aug 2021 18:46:37 +0000 (21:46 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 10 Aug 2021 19:31:42 +0000 (22:31 +0300)
commit667dcc277c15c0bddc785f9b949d658f8d815818
tree5db5368f1e14b3b7d5d116f156872c45b0c13f31
parentdd4c59d79a0f053ff1a2c2acc177e6a26e6c4137
lib: fix prefix-list duplication check

Currently, when we check the new prefix-list entry for duplication, we
only take filled in fields into account and ignore optional fields.
For example, if we already have `ip prefix-list A 0.0.0.0/0 le 32` and
we try to add `ip prefix-list A 0.0.0.0/0`, it is treated as duplicate.
We should always compare all prefix-list fields when doing the check.

Fixes #9355.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/filter.h
lib/filter_cli.c
lib/filter_nb.c