]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: add colored extended communities support
authorFrancois Dumontet <francois.dumontet@6wind.com>
Mon, 22 May 2023 13:36:06 +0000 (15:36 +0200)
committerFrancois Dumontet <francois.dumontet@6wind.com>
Mon, 26 Jun 2023 12:27:27 +0000 (14:27 +0200)
commitb80ebc2d8cf02f6530181d1ec260fdb1e714c1c1
tree67e35ddc34ea2898f0fe7c812f73b0d1f91601d0
parent53a9aee61897028c80a2eb1e235e66d7c0e9ad3f
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>
bgpd/bgp_ecommunity.c
bgpd/bgp_ecommunity.h
bgpd/bgp_routemap.c
bgpd/bgp_routemap_nb.c
bgpd/bgp_routemap_nb.h
bgpd/bgp_routemap_nb_config.c
lib/routemap.h
lib/routemap_cli.c
yang/frr-bgp-route-map.yang