]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_evpn.c
bgpd: Use source route's path attributes for type-5 routes
authorvivek <vivek@cumulusnetworks.com>
Mon, 4 Dec 2017 17:52:54 +0000 (09:52 -0800)
committermitesh <mitesh@cumulusnetworks.com>
Wed, 24 Jan 2018 00:24:39 +0000 (16:24 -0800)
commit2f69f6d36855cd7520b36d4bad1b63f146dd5cbe
treeb0b4dab0d3e8e9fc6428166b84570a96334f8a15
parentaa9db9e6e27beb00fb8bca643c3fdbfbdfdb125c
bgpd: Use source route's path attributes for type-5 routes

When an IPv4 or IPv6 unicast route is injected into EVPN as a type-5 route
(upon user configuration), ensure that the source route (best path)'s path
attributes are used to build the EVPN type-5 route. This will result in
correct AS_PATH and ORIGIN attributes for the type-5 route so that it doesn't
appear that all type-5 routes are locally sourced. This is necessary to
ensure that external paths (IPv4 or IPv6 from EBGP peer) are preferred over
internal EVPN paths, if both exist.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Ticket: CM-19051
Reviewed By: CCR-7009
Testing Done: Verify failed scenario
bgpd/bgp_evpn.c
bgpd/bgp_evpn.h
bgpd/bgp_route.c
bgpd/bgp_zebra.c