]> git.puffer.fish Git - mirror/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)
committerIgor Ryzhov <iryzhov@nfware.com>
Sun, 25 Feb 2024 23:04:57 +0000 (01:04 +0200)
commita9460ae713a43285a972070d925ce38eaa5e363a
treea422a761a3e5f36c477ac9e6218ae080d256c584
parent2aa6a67ec30824cd66119b4c0b8b7aea416ed5a6
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>
lib/filter.c
lib/filter.h
lib/filter_nb.c