Skip to content

Commit 902239a

Browse files
authored
[portsorch]: Refix: Don't print error when alias equal to PortConfigDone (sonic-net#548)
1 parent 651bedb commit 902239a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

orchagent/portsorch.cpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -1357,15 +1357,21 @@ void PortsOrch::doPortTask(Consumer &consumer)
13571357
continue;
13581358
}
13591359

1360-
if (alias != "PortConfigDone" && !gBufferOrch->isPortReady(alias))
1360+
if (alias == "PortConfigDone")
1361+
{
1362+
it = consumer.m_toSync.erase(it);
1363+
continue;
1364+
}
1365+
1366+
if (!gBufferOrch->isPortReady(alias))
13611367
{
13621368
// buffer configuration hasn't been applied yet. save it for future retry
13631369
it++;
13641370
continue;
13651371
}
13661372

13671373
Port p;
1368-
if (!getPort(alias, p) && alias != "PortConfigDone")
1374+
if (!getPort(alias, p))
13691375
{
13701376
SWSS_LOG_ERROR("Failed to get port id by alias:%s", alias.c_str());
13711377
}
@@ -1516,7 +1522,6 @@ void PortsOrch::doPortTask(Consumer &consumer)
15161522
{
15171523
SWSS_LOG_ERROR("Unknown fec mode %s", fec_mode.c_str());
15181524
}
1519-
15201525
}
15211526
}
15221527
}

0 commit comments

Comments
 (0)