diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-02-25 23:12:14 +0200 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-02-27 11:40:00 +0000 |
| commit | f9960582ee3b5fc90decbb1a56cda469e897b26e (patch) | |
| tree | 6633389889ce0269cdb8cee333f6333d7f22fce1 /lib/filter.h | |
| parent | 1d64549c3dfe3770e7e97626599f8421fcc1de0b (diff) | |
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)
Diffstat (limited to 'lib/filter.h')
| -rw-r--r-- | lib/filter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/filter.h b/lib/filter.h index bd9e22d384..4fa482ba4e 100644 --- a/lib/filter.h +++ b/lib/filter.h @@ -128,6 +128,7 @@ struct filter *filter_new(void); void access_list_filter_add(struct access_list *access, struct filter *filter); void access_list_filter_delete(struct access_list *access, struct filter *filter); +void access_list_filter_update(struct access_list *access); int64_t filter_new_seq_get(struct access_list *access); extern const struct frr_yang_module_info frr_filter_info; |
