From 324e8b1f79ccd00f75cdb8ba95ba0c0ee5e82b4d Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 31 Aug 2022 23:00:26 +0300 Subject: bgpd: Handle Origin Validation State extended community via route-map match Add an ability to match via route-maps. An additional route-map command `match rpki-extcommunity ` added. Signed-off-by: Donatas Abraitis --- lib/routemap_cli.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/routemap_cli.c') diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c index ff98a14c41..59253942ad 100644 --- a/lib/routemap_cli.c +++ b/lib/routemap_cli.c @@ -650,6 +650,11 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode, yang_dnode_get_string( dnode, "./rmap-match-condition/frr-bgp-route-map:rpki")); + } else if (IS_MATCH_RPKI_EXTCOMMUNITY(condition)) { + vty_out(vty, " match rpki-extcommunity %s\n", + yang_dnode_get_string( + dnode, + "./rmap-match-condition/frr-bgp-route-map:rpki-extcommunity")); } else if (IS_MATCH_PROBABILITY(condition)) { vty_out(vty, " match probability %s\n", yang_dnode_get_string( -- cgit v1.2.3