summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/filter_cli.c1
-rw-r--r--lib/filter_nb.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/filter_cli.c b/lib/filter_cli.c
index 07dd939f7..f31df1346 100644
--- a/lib/filter_cli.c
+++ b/lib/filter_cli.c
@@ -1323,6 +1323,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);
}
diff --git a/lib/filter_nb.c b/lib/filter_nb.c
index eb0b94527..9511b8f5b 100644
--- a/lib/filter_nb.c
+++ b/lib/filter_nb.c
@@ -1565,7 +1565,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);