]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_evpn.c
bgpd: Ensure EVPN routes are not injected back into EVPN
authorvivek <vivek@cumulusnetworks.com>
Fri, 19 Jan 2018 17:29:49 +0000 (09:29 -0800)
committermitesh <mitesh@cumulusnetworks.com>
Fri, 9 Feb 2018 07:02:05 +0000 (23:02 -0800)
commit25f2ca5307e4c7ad5a65cbf4639ee4d13a906cb4
treeeed39af0376368dd22e6d73ac001b40b771194d9
parent509d742fb39d8ca7182cfe8edc0e9857faca2918
bgpd: Ensure EVPN routes are not injected back into EVPN

EVPN type-2 and type-5 routes received with a L3 VNI and corresponding RTs
are installed into the appropriate BGP RIB. Ensure that these routes are not
re-injected back into EVPN as type-5 routes when type-5 advertisement is
enabled; only regular IPv4 routes (and IPv6 routes in future) in the RIB
should be injected into EVPN.

As a benefit of this change, no longer restrict that EVPN type-5 routes
should be non-host routes - i.e., allow /32 IPv4 routes (and /128 IPv6
routes in future).

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Ticket: CM-19456
Reviewed By: CCR-7117
Testing Done:
1. Manual replication of problem and verification of fix
2. evpn-min
bgpd/bgp_evpn.c
bgpd/bgp_route.c