Skip to content

Commit

Permalink
Set description in NodeStatusUVE while setting status as Non-Functional
Browse files Browse the repository at this point in the history
When control-nodes are not configured and none of the configured connections are down, we were not setting the description.
Closes-Bug: #1434616

Change-Id: I7e024113084e9b7dae77a24da40df76b3ea2520a
  • Loading branch information
ashoksr committed Apr 28, 2015
1 parent 0eca5f7 commit 1af8667
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vnsw/agent/uve/agent_uve_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ void AgentUveBase::VrouterAgentProcessState
}
if ((num_control_nodes == 0) || (num_control_nodes == down_control_nodes)) {
pstate = ProcessState::NON_FUNCTIONAL;
if ((num_control_nodes == 0) && message.empty()) {
message = "No control-nodes configured";
}
} else {
pstate = ProcessState::FUNCTIONAL;
}
Expand Down

0 comments on commit 1af8667

Please sign in to comment.