summaryrefslogtreecommitdiff
path: root/pceplib/test/pcep_utils_tests.c
diff options
context:
space:
mode:
authorAbhinay Ramesh <rabhinay@vmware.com>2021-04-01 05:22:23 +0000
committerAbhinay Ramesh <rabhinay@vmware.com>2021-04-07 09:57:04 +0000
commit8fac400c798c760bafbb4f4460a138b85d565ce7 (patch)
tree7c1e81d328b75abee987d606a695a6447ef87557 /pceplib/test/pcep_utils_tests.c
parent6b2433c63f7fd3027cea8e06ca45f85bd3eea6f2 (diff)
VRF-Lite: Fix export of withdraw-in-progress routes
Problem: Stale routes are seen in the bgp table(ipv4 and ipv6) RCA: Scenario1: Interface down and withdraw is in-progress. Router bgp config leading to re-leaking. Now, withdraw-in-progress routes, are again leaked to bgp vrf instance(s) importing routes. Whenever we see an interface down and corresponding address delete, while withdrawal of exported routes is in-progress, routes are marked as being removed and put into work queue. ‘router bgp’ config is updated, which triggers bgp_vpn_leak_export; which exports routes from configured bgp vrf to VPN. So withdraw-in-progress routes, are again leaked to bgp vrf instance(s) importing routes; leading to stale routes. Scenario2: - 'no import vrf non-default-vrf’ [in the default vrf] - bgp update from the peer withdrawing prefix [non-default vrf] - 'import vrf non-default-vrf’ [configured in the default vrf] While withdrawal of exported routes is in-progress, routes are marked as being removed and put into work queue, In the meantime, if import vrf is configured, which exports routes from configured bgp vrf to VPN. So withdraw-in-progress new routes, are again leaked to bgp vrf instance(s) importing routes; leading to stale routes. Fix: Whenever leaking routes (leak_update), for already existing routes, skip the routes with bgp_path_info marked as being removed. Also added the log message for the return. Co-authored-by: Santosh P K <sapk@vmware.com> Co-authored-by: Kantesh Mundaragi <kmundaragi@vmware.com> Signed-off-by: Abhinay Ramesh <rabhinay@vmware.com>
Diffstat (limited to 'pceplib/test/pcep_utils_tests.c')
0 files changed, 0 insertions, 0 deletions