]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Use BGP instance to derive the VRF for route uninstall 1938/head
authorvivek <vivek@cumulusnetworks.com>
Wed, 1 Nov 2017 20:36:46 +0000 (13:36 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 21 Mar 2018 20:37:24 +0000 (16:37 -0400)
commit568e10ca581e0519eb613f0fcd08dff794e27cd3
tree1bf187e9135e62aa5bf46142a0ec318bdd0a4887
parent3103e8d22f772f101a5c0d85f5423bf1550cdbf7
bgpd: Use BGP instance to derive the VRF for route uninstall

When uninstalling routes from zebra, ensure that the BGP instance for
which processing is being done is used to derive the VRF. It is incorrect
to derive the VRF from the peer when dealing with scenarios like VRF route
leaking, EVPN symmetric/external routing etc., where the peer which sourced
the route could belong to a different VRF.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Ticket: CM-18413
Reviewed By: CCR-6778
Testing Done: Manual testing of BGP route withdraw/delete, bgp-min
bgpd/bgp_route.c
bgpd/bgp_zebra.c
bgpd/bgp_zebra.h