Skip to content

Commit

Permalink
[portsorch]: Refix: Don't print error when alias equal to PortConfigD…
Browse files Browse the repository at this point in the history
…one (sonic-net#548)
  • Loading branch information
qiluo-msft committed Jul 26, 2018
1 parent 651bedb commit 902239a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1357,15 +1357,21 @@ void PortsOrch::doPortTask(Consumer &consumer)
continue;
}

if (alias != "PortConfigDone" && !gBufferOrch->isPortReady(alias))
if (alias == "PortConfigDone")
{
it = consumer.m_toSync.erase(it);
continue;
}

if (!gBufferOrch->isPortReady(alias))
{
// buffer configuration hasn't been applied yet. save it for future retry
it++;
continue;
}

Port p;
if (!getPort(alias, p) && alias != "PortConfigDone")
if (!getPort(alias, p))
{
SWSS_LOG_ERROR("Failed to get port id by alias:%s", alias.c_str());
}
Expand Down Expand Up @@ -1516,7 +1522,6 @@ void PortsOrch::doPortTask(Consumer &consumer)
{
SWSS_LOG_ERROR("Unknown fec mode %s", fec_mode.c_str());
}

}
}
}
Expand Down

0 comments on commit 902239a

Please sign in to comment.