]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Clean extended communities for VRF routes imported from EVPN
authorXiao Liang <shaw.leon@gmail.com>
Fri, 11 Apr 2025 10:04:50 +0000 (18:04 +0800)
committerXiao Liang <shaw.leon@gmail.com>
Fri, 18 Apr 2025 01:48:32 +0000 (09:48 +0800)
commitb336388d4afa2ab1e39cb130ffde0a85e87f13e3
tree45cb301142c0c9b0744c53fc9705dc953fda90c5
parentf84e89ec0d503820e13eac431a7a6dfbf744edd5
bgpd: Clean extended communities for VRF routes imported from EVPN

According to draft-ietf-bess-evpn-ipvpn-interworking-13, strip
the following extended communities for VRF routes imported from EVPN.

  a. BGP Encapsulation extended communities.
  b. Route Target extended communities.
  c. All the extended communities of type EVPN.

As the corresponding fields will not be always covered by extended
communities, add them to attr hash key directly.

Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
bgpd/bgp_attr.c
bgpd/bgp_evpn.c