Skip to content

Commit

Permalink
Do not send irrelevant empty agent lists from Prouter UVE
Browse files Browse the repository at this point in the history
Do not send tsn_agent_list from Tor-Agent and connected_agent_list from
TSN-agent.

Change-Id: I0a13eb0e86fa6a08b9e32f9361f41191d892f872
Partial-Bug: #1627142
  • Loading branch information
ashoksr committed Oct 3, 2016
1 parent 98b91c9 commit 64617e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/vnsw/agent/uve/prouter_uve_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -377,14 +377,16 @@ void ProuterUveTable::FrameProuterMsg(ProuterUveEntry *entry,
agent_list.push_back(agent_->agent_name());
if (agent_->tsn_enabled()) {
uve->set_tsn_agent_list(agent_list);
uve->set_connected_agent_list(empty_agent_list);
} else if (agent_->tor_agent_enabled()) {
uve->set_connected_agent_list(agent_list);
uve->set_tsn_agent_list(empty_agent_list);
}
} else {
/* Send Empty list */
uve->set_connected_agent_list(empty_agent_list);
if (agent_->tsn_enabled()) {
uve->set_tsn_agent_list(empty_agent_list);
} else if (agent_->tor_agent_enabled()) {
uve->set_connected_agent_list(empty_agent_list);
}
}
}

Expand Down

0 comments on commit 64617e0

Please sign in to comment.