From bd398a62aefa15ba473bbcd6cef46915f02d7d1e 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 b90c09c68b..b56daf3f2f 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -1688,7 +1688,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