Skip to content

Commit

Permalink
Skip if add port failure
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur committed Oct 2, 2021
1 parent f7df9a1 commit 48ab96c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2747,7 +2747,10 @@ void PortsOrch::doPortTask(Consumer &consumer)

if (!initPort(get<0>(it->second), get<5>(it->second), get<4>(it->second), it->first))
{
throw runtime_error("PortsOrch initialization failure.");
SWSS_LOG_ERROR("Initialize port %s failure", get<0>(it->second).c_str());

it++;
continue;
}

initPortSupportedSpeeds(get<0>(it->second), m_portListLaneMap[it->first]);
Expand Down

0 comments on commit 48ab96c

Please sign in to comment.