Skip to content

Commit

Permalink
Enqueue route updates in fabric route tables.
Browse files Browse the repository at this point in the history
There are still a couple of places where enqueue is happening in
respective VRF route tables. As these may be deleted before the
enqueued request is handled, always enqueue in fabric route table,
which checks for the actual route table and invokes relevant
operation.

Change-Id: I5dc3393e4c0ab85b83d5a09f76d65d5e11a535de
closes-bug: 1544380
  • Loading branch information
haripk committed Feb 11, 2016
1 parent 8403935 commit 88b7b3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/vnsw/agent/oper/inet_unicast_route.cc
Expand Up @@ -116,8 +116,7 @@ static void Inet4UnicastTableEnqueue(Agent *agent, DBRequest *req) {

static void Inet6UnicastTableEnqueue(Agent *agent, const string &vrf_name,
DBRequest *req) {
AgentRouteTable *table =
agent->vrf_table()->GetInet6UnicastRouteTable(vrf_name);
AgentRouteTable *table = agent->fabric_inet4_unicast_table();
if (table) {
table->Enqueue(req);
}
Expand Down
4 changes: 2 additions & 2 deletions src/vnsw/agent/oper/path_preference.cc
Expand Up @@ -392,9 +392,9 @@ void PathPreferenceSM::EnqueuePathChange() {

AgentRouteTable *table = NULL;
if (rt_->GetTableType() == Agent::EVPN) {
table = rt_->vrf()->GetEvpnRouteTable();
table = agent_->fabric_evpn_table();
} else if (rt_->GetTableType() == Agent::INET4_UNICAST) {
table = rt_->vrf()->GetInet4UnicastRouteTable();
table = agent_->fabric_inet4_unicast_table();
}

if (table) {
Expand Down

0 comments on commit 88b7b3d

Please sign in to comment.