]> git.proxmox.com Git - mirror_frr.git/commit
lib: Adjust only `any` flag for prefix-list entries if destroying
authorDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 17 Mar 2023 12:48:35 +0000 (14:48 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Sat, 18 Mar 2023 11:31:55 +0000 (11:31 +0000)
commit6d7a03d0b1b53cf5d225b0af3f21301bb7858542
treef763231a2c6ee80d4ee5784ad41d960b6e41a7a1
parent444a4716fbdefb61d0b7964731470f3019033cc2
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>
(cherry picked from commit 61c07b9d43529f69f48ca54f4f0213cff52b5d0a)
lib/filter_cli.c
lib/filter_nb.c