Skip to content

Commit

Permalink
Merge "when ever interface object is getting created which has analyz…
Browse files Browse the repository at this point in the history
…er attached to it then interface entry depends on mirror entry to present. if the mirror entry is not resolved we are adding mirror entry in temp state. (cherry picked from commit 819f94e7407fecdc2de390e0cfa64465c711923e)"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Mar 3, 2016
2 parents efc8639 + 5243c86 commit 1d6b4e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/vnsw/agent/vrouter/ksync/interface_ksync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,16 @@ KSyncEntry *InterfaceKSyncEntry::UnresolvedReference() {
return parent_.get();
}

if (!analyzer_name_.empty()) {
MirrorKSyncObject *mirror_object =
ksync_obj_->ksync()->mirror_ksync_obj();
MirrorKSyncEntry mksync1(mirror_object, analyzer_name_);
MirrorKSyncEntry *mirror =
static_cast<MirrorKSyncEntry *>(mirror_object->GetReference(&mksync1));
if (mirror && !mirror->IsResolved()) {
return mirror;
}
}
return NULL;
}

Expand Down

0 comments on commit 1d6b4e1

Please sign in to comment.