summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-03-18 12:31:12 +0100
committerGitHub <noreply@github.com>2023-03-18 12:31:12 +0100
commit32894bf8afa51b98a9972ebd7086e9517dba2d73 (patch)
treef1d3cc53860346d6331a0d67f0b65fd72f7de9ec /lib
parentMerge pull request #13027 from donaldsharp/evpn_crashit_like_you_wantit (diff)
parentlib: Adjust only `any` flag for prefix-list entries if destroying (diff)
downloadfrr-32894bf8afa51b98a9972ebd7086e9517dba2d73.tar.xz
frr-32894bf8afa51b98a9972ebd7086e9517dba2d73.zip
Merge pull request #13024 from opensourcerouting/fix/bgpd_prefix-list_changes_not_affected
lib: Adjust only any flag for prefix-list entries if destroying
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);