]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Fix IP-VRF ext-comm check for MACIP routes
authorTrey Aspelund <taspelund@nvidia.com>
Tue, 13 Apr 2021 03:42:11 +0000 (03:42 +0000)
committerTrey Aspelund <taspelund@nvidia.com>
Tue, 20 Apr 2021 14:00:20 +0000 (14:00 +0000)
commita2b19693f72778d6a70db804e5fd1e7cca80b1af
tree240e889c615c0ddd2d3002d5ae0c9db9f870344a
parent9c95ede7060c1e16a211c07d43ff14f0627b4c75
bgpd: Fix IP-VRF ext-comm check for MACIP routes

When validating a MACIP route's IP address,
bgp_evpn_route_add_l3_ecomm_ok checked for a non link-local v6 address
without checking if the v6 address existed.  Since empty v6 addresses
do not fall into the fe80 range, MAC-Only routes were always passing
this check and getting IP-VRF extended communities (RMAC/IP-VRF RT)
added to the routes.
This commit requires ipaddr_v6 to exist AND fall outside of the
link-local range for IP-VRF ext-comms to be added.

Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
bgpd/bgp_evpn.c