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.
closes-bug: #1547531

Change-Id: I34a56df5cf957e5be00976e7f9978b1414c19033
  • Loading branch information
jayaramsatya committed Feb 24, 2016
1 parent 6c20e9f commit 47f0fa5
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 47f0fa5

Please sign in to comment.