Skip to content

Commit

Permalink
Merge "OVSDB fix exporting routes for existing VRF"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 10, 2015
2 parents 98ff667 + ab8e13b commit 3830550
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -311,6 +311,13 @@ VrfOvsdbObject::VrfOvsdbObject(OvsdbClientIdl *idl, DBTable *table) :
walkid_(DBTableWalker::kInvalidWalkerId) {
vrf_listener_id_ = table->Register(boost::bind(&VrfOvsdbObject::VrfNotify,
this, _1, _2));

// Trigger Walk to get existing vrf entries.
DBTableWalker *walker = idl->agent()->db()->GetWalker();
walkid_ = walker->WalkTable(table_, NULL,
boost::bind(&VrfOvsdbObject::VrfWalkNotify, this, _1, _2),
boost::bind(&VrfOvsdbObject::VrfWalkDone, this, _1));

client_idl_->Register(OvsdbClientIdl::OVSDB_UCAST_MAC_REMOTE,
boost::bind(&VrfOvsdbObject::OvsdbRouteNotify, this, _1, _2));
}
Expand Down

0 comments on commit 3830550

Please sign in to comment.