diff options
| author | Russ White <russ@riw.us> | 2022-09-13 11:30:54 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-13 11:30:54 -0400 | 
| commit | 7fa5e07b1cbf045f22547db11686eb82d5323079 (patch) | |
| tree | 4d22271eb7469e4e3bfab32f51b6c75950fc2cb6 /lib | |
| parent | c3c5f18c2b8a96dd9ce7a42ddaee4ce19e9d288e (diff) | |
| parent | 324e8b1f79ccd00f75cdb8ba95ba0c0ee5e82b4d (diff) | |
Merge pull request #11899 from opensourcerouting/feature/route_validation_extended_community
bgpd: Implement Origin Validation State via extended communities
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/routemap.h | 2 | ||||
| -rw-r--r-- | lib/routemap_cli.c | 5 | 
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/routemap.h b/lib/routemap.h index 0152e820d0..a365925854 100644 --- a/lib/routemap.h +++ b/lib/routemap.h @@ -280,6 +280,8 @@ DECLARE_QOBJ_TYPE(route_map);  #define IS_MATCH_ORIGIN(C)                                                     \  	(strmatch(C, "frr-bgp-route-map:match-origin"))  #define IS_MATCH_RPKI(C) (strmatch(C, "frr-bgp-route-map:rpki")) +#define IS_MATCH_RPKI_EXTCOMMUNITY(C)                                          \ +	(strmatch(C, "frr-bgp-route-map:rpki-extcommunity"))  #define IS_MATCH_PROBABILITY(C)                                                \  	(strmatch(C, "frr-bgp-route-map:probability"))  #define IS_MATCH_SRC_VRF(C)                                                    \ diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c index 42c7a05d18..6be5d15ec4 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(  | 
