diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-03-17 14:48:35 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-03-17 14:54:39 +0200 |
| commit | 61c07b9d43529f69f48ca54f4f0213cff52b5d0a (patch) | |
| tree | 1e9dcc3b028ca969ceb367a56d8e9a8001d419c7 /lib/filter_nb.c | |
| parent | a1e538178cb1ed09f6bbc0612605c5980bb9a3df (diff) | |
lib: Adjust only `any` flag for prefix-list entries if destroying
Before this patch, if we destroy `any` flag for a prefix-list entry, we always
set destination as 0.0.0.0/0 and/or ::/0.
This means that, if we switch from `ip prefix-list r1-2 seq 5 deny any` to
`ip prefix-list r1-2 seq 5 permit 10.10.10.10/32` we will have
`permit any` eventually, which broke ACLs.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/filter_nb.c')
| -rw-r--r-- | lib/filter_nb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filter_nb.c b/lib/filter_nb.c index a14f232339..b5e3e5f65f 100644 --- a/lib/filter_nb.c +++ b/lib/filter_nb.c @@ -1630,7 +1630,7 @@ static int lib_prefix_list_entry_any_destroy(struct nb_cb_destroy_args *args) /* Start prefix entry update procedure. */ prefix_list_entry_update_start(ple); - prefix_list_entry_set_empty(ple); + ple->any = false; /* Finish prefix entry update procedure. */ prefix_list_entry_update_finish(ple); |
