]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_vty.c
bgpd: add an API to get incoming VRF from a RT
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 23 Jan 2018 17:09:12 +0000 (18:09 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Mar 2018 13:21:51 +0000 (15:21 +0200)
commit301ad80a9976e422090cba1f7fc0bad32eceaa81
tree54d0047209f71a0b6d9513dd9655443a7d409d73
parent6a32d26634c2b25489bba94694da374544978c57
bgpd: add an API to get incoming VRF from a RT

This commit is relying on bgp vpn-policy. It is needed to configure
several bgp vrf instances, and in each of the bgp instance, configure
the following command under address-family ipv4 unicast node:
[no] rt redirect import RTLIST

Then, a function is provided, that will parse the BGP instances.
The incoming ecommunity will be compared with the configured rt redirect
import ecommunity list, and return the VRF first instance of the matching
route target.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h
bgpd/bgp_vty.c
bgpd/bgpd.c
bgpd/bgpd.h