diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-03-17 14:48:35 +0200 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-03-18 11:31:55 +0000 |
| commit | 6d7a03d0b1b53cf5d225b0af3f21301bb7858542 (patch) | |
| tree | f763231a2c6ee80d4ee5784ad41d960b6e41a7a1 /lib/filter_cli.c | |
| parent | 444a4716fbdefb61d0b7964731470f3019033cc2 (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>
(cherry picked from commit 61c07b9d43529f69f48ca54f4f0213cff52b5d0a)
Diffstat (limited to 'lib/filter_cli.c')
| -rw-r--r-- | lib/filter_cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/filter_cli.c b/lib/filter_cli.c index 5accea3f02..3b896e3aa2 100644 --- a/lib/filter_cli.c +++ b/lib/filter_cli.c @@ -1340,6 +1340,7 @@ DEFPY_YANG( vty, "./ipv4-prefix-length-lesser-or-equal", NB_OP_DESTROY, NULL); } + nb_cli_enqueue_change(vty, "./any", NB_OP_DESTROY, NULL); } else { nb_cli_enqueue_change(vty, "./any", NB_OP_CREATE, NULL); } |
