Skip to content

Commit

Permalink
when ever interface object is getting created which has analyzer atta…
Browse files Browse the repository at this point in the history
…ched 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)

closes-bug: #1547531
Change-Id: I34a56df5cf957e5be00976e7f9978b1414c19033
  • Loading branch information
jayaramsatya authored and praveenkv committed Mar 2, 2016
1 parent 9cd0404 commit 5243c86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/vnsw/agent/vrouter/ksync/interface_ksync.cc
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 5243c86

Please sign in to comment.