From 1af86675a60db08eea50418ca1b5d0757e012e5c Mon Sep 17 00:00:00 2001 From: ashoksingh Date: Tue, 28 Apr 2015 21:39:48 +0530 Subject: [PATCH] Set description in NodeStatusUVE while setting status as Non-Functional 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 --- src/vnsw/agent/uve/agent_uve_base.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vnsw/agent/uve/agent_uve_base.cc b/src/vnsw/agent/uve/agent_uve_base.cc index 0261949c7a2..823809cff9d 100644 --- a/src/vnsw/agent/uve/agent_uve_base.cc +++ b/src/vnsw/agent/uve/agent_uve_base.cc @@ -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; }