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/13710 github. org/Juniper/ contrail- controller/ commit/ 6621afcfda3795f 429161c0554d870 e1ec33b664
Committed: http://
Submitter: Zuul
Branch: master
commit 6621afcfda3795f 429161c0554d870 e1ec33b664
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