Skip to content

Commit

Permalink
Merge "* Ignore vrf delete notification if vrf state is NULL There ma…
Browse files Browse the repository at this point in the history
…y be a duplicate delete notified for VRF in case quick addition and deletion, if vrf state is not set then ignore delete notification. Closes-bug:#1557427,#1557422" into R3.0
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Mar 15, 2016
2 parents 43e1d58 + f8a0969 commit 23b51ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/vnsw/agent/oper/path_preference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1058,9 +1058,11 @@ void PathPreferenceModule::VrfNotify(DBTablePartBase *partition,
static_cast<PathPreferenceVrfState *>(e->GetState(partition->parent(),
vrf_id_));

if (vrf->IsDeleted() && vrf_state) {
e->ClearState(partition->parent(), vrf_id_);
delete vrf_state;
if (vrf->IsDeleted()) {
if (vrf_state) {
e->ClearState(partition->parent(), vrf_id_);
delete vrf_state;
}
return;
}

Expand Down

0 comments on commit 23b51ef

Please sign in to comment.