From: Alexander Chernavin Date: Mon, 10 Oct 2022 13:17:54 +0000 (+0000) Subject: bgpd: fix "no match rpki" in route-map X-Git-Tag: frr-8.4~23^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bd398a62aefa15ba473bbcd6cef46915f02d7d1e;p=mirror%2Ffrr.git 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) --- 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); }