diff options
| author | Alexander Chernavin <achernavin@netgate.com> | 2022-10-10 13:17:54 +0000 | 
|---|---|---|
| committer | Alexander Chernavin <achernavin@netgate.com> | 2022-10-11 10:39:50 +0000 | 
| commit | 87c3ed1bf82ae84eae6c9848b4c53de721671401 (patch) | |
| tree | dd09d71fdf36676207a3db5569115af728eb3abc /bgpd/bgp_rpki.c | |
| parent | afd4d90111125e35a6023a2ca27512396a57a33a (diff) | |
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 <achernavin@netgate.com>
Diffstat (limited to 'bgpd/bgp_rpki.c')
| -rw-r--r-- | bgpd/bgp_rpki.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index e03853d187..cb7afd8967 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);  }  | 
