]> git.puffer.fish Git - mirror/frr.git/commit
bgpd:support of color extended community color-only types
authorguozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>
Thu, 24 Oct 2024 12:05:23 +0000 (20:05 +0800)
committerguozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>
Thu, 7 Nov 2024 11:02:11 +0000 (19:02 +0800)
commit937cf4db1738d768ed7dac8677d16f7585bb75de
tree1183607421fc5c766ea4af38e4e3d7aa152b44bc
parent91e157f3ae5fabe7b8cc36563cc8c8f9f887cf2f
bgpd:support of color extended community color-only types

Add support of color extended community color-only types, RFC 9256.
The type only support 00 01 10.

configuration example:
!
frr version 10.3-dev-my-manual-build
frr defaults traditional
hostname router3
!
route-map color permit 1
 set extcommunity color 10:100 01:200 00:300
exit
!
vrf Vrf1
exit-vrf
!
interface lo
 ipv6 address 3::3/128
exit
!
router bgp 3
 bgp router-id 3.3.3.3
 bgp log-neighbor-changes
 no bgp ebgp-requires-policy
 no bgp default ipv4-unicast
 bgp bestpath as-path multipath-relax
 timers bgp 10 30
 neighbor 100.13.13.1 remote-as 1
 neighbor 100.13.13.1 advertisement-interval 0
 neighbor 100.23.23.2 remote-as 2
 neighbor 100.23.23.2 advertisement-interval 0
 neighbor 1000:3000::1 remote-as 1
 neighbor 1000:3000::1 ebgp-multihop
 neighbor 1000:3000::1 update-source 1000:3000::3
 neighbor 1000:3000::1 capability extended-nexthop
 neighbor 2000:3000::2 remote-as 2
 neighbor 2000:3000::2 ebgp-multihop
 neighbor 2000:3000::2 update-source 2000:3000::3
 neighbor 2000:3000::2 capability extended-nexthop
 !
 address-family ipv4 unicast
  neighbor 100.13.13.1 activate
  neighbor 100.23.23.2 activate
 exit-address-family
 !
 address-family ipv6 unicast
  redistribute connected route-map color
  neighbor 1000:3000::1 activate
  neighbor 2000:3000::2 activate
 exit-address-family
exit
!
end

Signed-off-by: guozhongfeng.gzf <guozhongfeng.gzf@alibaba-inc.com>
bgpd/bgp_ecommunity.c
bgpd/bgp_ecommunity.h
yang/frr-bgp-route-map.yang