]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_mplsvpn.c
bgpd: router-id change reflect to vpn auto rd rt
authorChirag Shah <chirag@cumulusnetworks.com>
Fri, 8 Mar 2019 05:26:14 +0000 (21:26 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Mon, 11 Mar 2019 20:46:46 +0000 (13:46 -0700)
commit636f76088d1148711f3cdbffd2b1c807b773d664
treed2e2be479e3fd40f3fef47ab5e51230df0d0d59b
parent2b38c97fe1ee3140d5b8e4b42082db98df390297
bgpd: router-id change reflect to vpn auto rd rt

VRF route leak auto RD and RT uses router-id,
when a router-id changes for a bgp instance, change
associated vpn RD and RT values. Withdraw
old RD/RT routes from vpn and with new
RD/RT values advertise new routes to vpn.

One of the sceanrio is restarting frr:
A router-id change may not have reflected
for bgp vrf instance X, while import vrf X
under bgp vrf instance Y.
Once router-id changes for bgp VRF X,
change RD and RTs from export VRF and
imported VRFs. Readvertise routes with new
values to VPN.

Ticket:CM-24149
Reviewed By:CCR-8394
Testing Done:

Validated via configured multiple bgp VRF instances
and enable route leaks among them, restart frr
and all instance received correct RD and RT values.
Checked 'show bgp vrf all ipv4 unicast route-leak'
and vpn table 'show bgp ipv4 vpn all' output.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h
bgpd/bgpd.c