diff options
| author | Francois Dumontet <francois.dumontet@6wind.com> | 2023-05-22 15:36:06 +0200 | 
|---|---|---|
| committer | Francois Dumontet <francois.dumontet@6wind.com> | 2023-06-26 14:27:27 +0200 | 
| commit | b80ebc2d8cf02f6530181d1ec260fdb1e714c1c1 (patch) | |
| tree | 67e35ddc34ea2898f0fe7c812f73b0d1f91601d0 /bgpd/bgp_routemap_nb.h | |
| parent | 53a9aee61897028c80a2eb1e235e66d7c0e9ad3f (diff) | |
bgpd: add colored extended communities support
add support of color extended community, conforming to RFC 9012.
This extended community will be added to the existing one, RT,SOO
and Node Target. The configuration will be made through the
route-map service.
find above a configuration example:
router bgp 65001
 bgp router-id 192.168.1.1
 no bgp ebgp-requires-policy
 no bgp network import-check
 neighbor 192.168.1.2 remote-as external
 neighbor 192.168.1.3 remote-as external
 neighbor 192.168.1.4 remote-as external
 address-family ipv4 unicast
  network 10.10.10.10/24 route-map rmap
  exit-address-family
!
  route-map rmap permit 10
   set extcommunity color 55555 200
  exit
Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com>
Diffstat (limited to 'bgpd/bgp_routemap_nb.h')
| -rw-r--r-- | bgpd/bgp_routemap_nb.h | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_routemap_nb.h b/bgpd/bgp_routemap_nb.h index 7066fdb419..3ff58f71a7 100644 --- a/bgpd/bgp_routemap_nb.h +++ b/bgpd/bgp_routemap_nb.h @@ -153,6 +153,10 @@ int lib_route_map_entry_set_action_rmap_set_action_evpn_gateway_ip_ipv6_modify(  	struct nb_cb_modify_args *args);  int lib_route_map_entry_set_action_rmap_set_action_evpn_gateway_ip_ipv6_destroy(  	struct nb_cb_destroy_args *args); +int lib_route_map_entry_set_action_rmap_set_action_extcommunity_color_modify( +	struct nb_cb_modify_args *args); +int lib_route_map_entry_set_action_rmap_set_action_extcommunity_color_destroy( +	struct nb_cb_destroy_args *args);  int lib_route_map_entry_set_action_rmap_set_action_l3vpn_nexthop_encapsulation_modify(  	struct nb_cb_modify_args *args);  int lib_route_map_entry_set_action_rmap_set_action_l3vpn_nexthop_encapsulation_destroy(  | 
