]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix prefix-list entry update 15437/head
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 25 Feb 2024 23:00:17 +0000 (01:00 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 27 Feb 2024 11:40:00 +0000 (11:40 +0000)
commit4ae43556262e4fa0f697fcc7911d03c7e290459c
tree208d445a0bff6ea73b459eb8c1b63afe83d5e75f
parentf9960582ee3b5fc90decbb1a56cda469e897b26e
lib: fix prefix-list entry update

When a prefix-list entry is updated, current NB code calls the
replacement code multiple times, once per each updated field. It means
that when multiple fields of an entry are changed in a single commit,
the replacement is done with an interim state of a prefix-list instead
of a final one. To fix the issue, we should call the replacement code
once, after all fields of an entry are updated.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 0bc2ab8598fa1418d3a45499e4f047622d21d6b4)
lib/filter_nb.c