]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix "no match rpki" in route-map 12101/head
authorAlexander Chernavin <achernavin@netgate.com>
Mon, 10 Oct 2022 13:17:54 +0000 (13:17 +0000)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 11 Oct 2022 14:06:04 +0000 (14:06 +0000)
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 <achernavin@netgate.com>
(cherry picked from commit 87c3ed1bf82ae84eae6c9848b4c53de721671401)

bgpd/bgp_rpki.c

index b90c09c68b2175620a3f4ff386f54e8d2ee82263..b56daf3f2f27e8a74f1d899997de278d3eb8eb9d 100644 (file)
@@ -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);
 }