We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 947998b commit 6cf834cCopy full SHA for 6cf834c
orchagent/portsorch.cpp
@@ -2380,7 +2380,8 @@ bool PortsOrch::initializePort(Port &port)
2380
/*
2381
* always initialize Port SAI_HOSTIF_ATTR_OPER_STATUS based on oper_status value in appDB.
2382
*/
2383
- if (!setHostIntfsOperStatus(port, port.m_oper_status))
+ bool isUp = port.m_oper_status == SAI_PORT_OPER_STATUS_UP;
2384
+ if (!setHostIntfsOperStatus(port, isUp))
2385
{
2386
SWSS_LOG_WARN("Failed to set operation status %s to host interface %s",
2387
operStatus.c_str(), port.m_alias.c_str());
0 commit comments