]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix prefix-list entry update
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 25 Feb 2024 23:00:17 +0000 (01:00 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Sun, 25 Feb 2024 23:04:57 +0000 (01:04 +0200)
commit0bc2ab8598fa1418d3a45499e4f047622d21d6b4
treec8af78b9804fe26c3e8c21104700b3beb3f0ffbc
parenta9460ae713a43285a972070d925ce38eaa5e363a
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>
lib/filter_nb.c