]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix "no match rpki" in route-map 12087/head
authorAlexander Chernavin <achernavin@netgate.com>
Mon, 10 Oct 2022 13:17:54 +0000 (13:17 +0000)
committerAlexander Chernavin <achernavin@netgate.com>
Tue, 11 Oct 2022 10:39:50 +0000 (10:39 +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>
bgpd/bgp_rpki.c

index e03853d1875d15a2d9bb031d44f1b4b508158f6f..cb7afd89677ec7b2ca21066e347bbdd573164c5d 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);
 }