]> git.puffer.fish Git - matthieu/frr.git/commit
BGP: Unlink BGP instance from VRF only at the end of deletion
authorvivek <vivek@cumulusnetworks.com>
Sat, 14 May 2016 21:48:18 +0000 (14:48 -0700)
committervivek <vivek@cumulusnetworks.com>
Sat, 14 May 2016 22:57:43 +0000 (15:57 -0700)
commitd3f5a0d3f51a8a7f3f02c38bd4c1c6870b4b2a5b
tree4593ed1810972cba6b591ed7249df171471282d3
parent3ff86133141f647fc220c3ef703267e487e65778
BGP: Unlink BGP instance from VRF only at the end of deletion

When a BGP instance including the default instance is deleted, it needs to be
unlinked from the corresponding VRF structure. However, instance deletion does
not happen in one shot but needs a lot of threads to run - peer event handling,
route processing etc. - before it can complete. Premature unlinking of the
instance from underlying VRF would result in BGP routes not being deleted from
the zebra RIB.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-10930
Reviewed By: CCR-4717
Testing Done: Manual, bgp-smoke
bgpd/bgpd.c