]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix access-list entry update
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 25 Feb 2024 21:12:14 +0000 (23:12 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 27 Feb 2024 11:40:00 +0000 (11:40 +0000)
commitf9960582ee3b5fc90decbb1a56cda469e897b26e
tree6633389889ce0269cdb8cee333f6333d7f22fce1
parent1d64549c3dfe3770e7e97626599f8421fcc1de0b
lib: fix access-list entry update

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

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