Skip to content

Commit

Permalink
Fix recurring log in initPorts
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
stepanblyschak committed Jan 15, 2025
1 parent 6b5f62d commit 2758469
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3533,6 +3533,11 @@ bool PortsOrch::initPorts(const std::vector<PortConfig> &portConfigs)
ports.push_back(p);
}

if (ports.empty())
{
return status;
}

SWSS_LOG_TIMER(__FUNCTION__);

if (!initializePorts(ports))
Expand All @@ -3558,6 +3563,8 @@ bool PortsOrch::initPorts(const std::vector<PortConfig> &portConfigs)

void PortsOrch::postInitPort(Port &p)
{
SWSS_LOG_ENTER();

const auto &alias = p.m_alias;
const auto &role = p.m_role;
const auto &index = p.m_index;
Expand Down

0 comments on commit 2758469

Please sign in to comment.