From a1315ee82e4698ead4d2ef6935504710117cc055 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Mon, 12 Oct 2026 17:38:27 -0400 Subject: [PATCH] remove the STP from health it has no good use; --- src/fne/restapi/RESTAPI.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/fne/restapi/RESTAPI.cpp b/src/fne/restapi/RESTAPI.cpp index dfeb344b..8284f5b5 100644 --- a/src/fne/restapi/RESTAPI.cpp +++ b/src/fne/restapi/RESTAPI.cpp @@ -2443,19 +2443,6 @@ void RESTAPI::restAPI_GetHealth(const HTTPPayload& request, HTTPPayload& reply, traffic["activeCalls"].set(activeCalls); health["traffic"].set(traffic); - // construct JSON object representing the status of the spanning tree network - json::object spanningTree = json::object(); - const bool treeAvailable = m_network->m_treeRoot != nullptr; - const uint32_t knownNodes = treeAvailable ? network::SpanningTree::countChildren(m_network->m_treeRoot) + 1U : 0U; - spanningTree["status"].set(treeAvailable ? HEALTH_HEALTHY : HEALTH_UNAVAILABLE); - const bool spanningTreeEnabled = m_network->m_enableSpanningTree; - const uint32_t rootId = treeAvailable ? m_network->m_treeRoot->id() : 0U; - spanningTree["enabled"].set(spanningTreeEnabled); - spanningTree["rootId"].set(rootId); - spanningTree["localRole"].set(treeAvailable && m_network->m_treeRoot->id() == m_network->m_peerId ? "root" : "node"); - spanningTree["knownNodes"].set(knownNodes); - health["spanningTree"].set(spanningTree); - // determine the overall health status of the network based on individual components std::string overall = HEALTH_HEALTHY; if (dataPlaneInitializing) { @@ -2466,7 +2453,7 @@ void RESTAPI::restAPI_GetHealth(const HTTPPayload& request, HTTPPayload& reply, overall = HEALTH_IDLE; } - if (upstreamDegraded || metadataDegraded || !treeAvailable) { + if (upstreamDegraded || metadataDegraded) { overall = HEALTH_DEGRADED; }