diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-08-31 23:00:26 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-09-04 21:54:47 +0300 |
| commit | 324e8b1f79ccd00f75cdb8ba95ba0c0ee5e82b4d (patch) | |
| tree | 8bdf9184e44c469d672a0e2864fa7ae931f05b40 /bgpd/bgp_routemap_nb.c | |
| parent | 7b27cf7bbdf24521ddb780298d998a167226c684 (diff) | |
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 <invalid|notfound|valid>` added.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_routemap_nb.c')
| -rw-r--r-- | bgpd/bgp_routemap_nb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bgpd/bgp_routemap_nb.c b/bgpd/bgp_routemap_nb.c index 585596e1aa..21517d66d7 100644 --- a/bgpd/bgp_routemap_nb.c +++ b/bgpd/bgp_routemap_nb.c @@ -67,6 +67,13 @@ const struct frr_yang_module_info frr_bgp_route_map_info = { } }, { + .xpath = "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-bgp-route-map:rpki-extcommunity", + .cbs = { + .modify = lib_route_map_entry_match_condition_rmap_match_condition_rpki_extcommunity_modify, + .destroy = lib_route_map_entry_match_condition_rmap_match_condition_rpki_extcommunity_destroy, + } + }, + { .xpath = "/frr-route-map:lib/route-map/entry/match-condition/rmap-match-condition/frr-bgp-route-map:probability", .cbs = { .modify = lib_route_map_entry_match_condition_rmap_match_condition_probability_modify, |
