Delete state only after processing a DELETE IFMapUpdate.
There can be cases when while processing an UPDATE-IFMapUpdate dequeue event,
we find that the state is ready to be deleted. We want to wait until we have
processed the 'DELETE' IFMapUpdate event to finally delete the state.
EG: A node add, link add with that node, link delete, node delete, exporter
processes node delete before link delete i.e. dependency is still set and
exporter does not enqueue a DELETE-UPDATE-IFMapUpdate. Now, if we dequeue
UPDATE-IFMapUpdate, the state is ready to be deleted. But, we want to wait
until exporter processes the link-delete and triggers a node-change via
MaybeNotifyOnLinkDelete() to delete the state.
Reviewed: https:/ /review. opencontrail. org/13717 github. org/Juniper/ contrail- controller/ commit/ 2d9567062f5131a 1515820ee9d19f7 3e9718ce5e
Committed: http://
Submitter: Zuul
Branch: R2.0
commit 2d9567062f5131a 1515820ee9d19f7 3e9718ce5e
Author: Tapan Karwa <email address hidden>
Date: Wed Sep 9 09:40:35 2015 -0700
Delete state only after processing a DELETE IFMapUpdate.
There can be cases when while processing an UPDATE-IFMapUpdate dequeue event,
we find that the state is ready to be deleted. We want to wait until we have
processed the 'DELETE' IFMapUpdate event to finally delete the state.
EG: A node add, link add with that node, link delete, node delete, exporter UPDATE- IFMapUpdate. Now, if we dequeue nkDelete( ) to delete the state.
processes node delete before link delete i.e. dependency is still set and
exporter does not enqueue a DELETE-
UPDATE-IFMapUpdate, the state is ready to be deleted. But, we want to wait
until exporter processes the link-delete and triggers a node-change via
MaybeNotifyOnLi
Change-Id: I42ebbd5a9cff82 4c9732c52a773b6 bc9ee36dc1a
Closes-Bug: #1484784