]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Refine check for which routes can be exported into VPN
authorvivek <vivek@cumulusnetworks.com>
Thu, 28 Feb 2019 08:30:51 +0000 (08:30 +0000)
committervivek <vivek@cumulusnetworks.com>
Thu, 28 Feb 2019 08:30:51 +0000 (08:30 +0000)
commit12d6100c52d14f7501cd04ffbb6a4f1b10ec3cd6
tree01451837772de484338a76779eaa967b19e53336
parent7452e879c353fabb5d6797bb241b023dcf1e801e
bgpd: Refine check for which routes can be exported into VPN

A non-imported route or a non-VPN imported route is a candidate to be
exported into the VPN routing table for leaking to other BGP instances
or advertisement into BGP/MPLS VPN. The former is a local or learnt
IPv4 or IPv6 route. The latter is an IPv4 or IPv6 route that is based
on a received EVPN type-2 or type-5 route.

Implement a function to specify if a route can be exported into VPN
and use in the appropriate places.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h