Skip to content

Commit

Permalink
Merge "Updated Mirror entry values VNI & mirror_flags to be synced to…
Browse files Browse the repository at this point in the history
… vrouter. Closes-Bug: #1608021" into R3.1
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Aug 1, 2016
2 parents 6108b0f + 8a943c9 commit 53a4f25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/vnsw/agent/vrouter/ksync/mirror_ksync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ bool MirrorKSyncEntry::Sync(DBEntry *e) {
bool ret = false;
const MirrorEntry *mirror = static_cast<MirrorEntry *>(e);

if (vni_ != mirror->GetVni()) {
vni_ = mirror->GetVni();
ret =true;
}

if (mirror_flag_ != mirror->GetMirrorFlag()) {
mirror_flag_ = mirror->GetMirrorFlag();
ret = true;
}

NHKSyncObject *nh_object = ksync_obj_->ksync()->nh_ksync_obj();
if (mirror->GetNH() == NULL) {
LOG(DEBUG, "nexthop in Mirror entry is null");
Expand Down

0 comments on commit 53a4f25

Please sign in to comment.