From 01cfd960ea3a271be6eb4dc3853e48f1136a3668 Mon Sep 17 00:00:00 2001 From: Alexander Chernavin Date: Mon, 10 Oct 2022 13:17:54 +0000 Subject: [PATCH] bgpd: fix "no match rpki" in route-map With this fix, make "no match rpki" in a route-map actually remove the node in the candidate configuration instead of creating it. Signed-off-by: Alexander Chernavin (cherry picked from commit 87c3ed1bf82ae84eae6c9848b4c53de721671401) --- bgpd/bgp_rpki.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 1c7dc7cb0a..d1c3368556 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -1651,7 +1651,7 @@ DEFUN_YANG (no_match_rpki, const char *xpath = "./match-condition[condition='frr-bgp-route-map:rpki']"; - nb_cli_enqueue_change(vty, xpath, NB_OP_CREATE, NULL); + nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL); return nb_cli_apply_changes(vty, NULL); } -- 2.39.5