]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix "no match rpki" in route-map
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:17 +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 1c7dc7cb0ae0b01a22136a7c953bac3f41f09904..d1c3368556c62bc6bf3bb69548cbc454107c2035 100644 (file)
@@ -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);
 }