Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SFLOW] Failed to breakout due to configure Sflow #2825

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion orchagent/sfloworch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,17 @@ void SflowOrch::doTask(Consumer &consumer)
string op = kfvOp(tuple);
string alias = kfvKey(tuple);

gPortsOrch->getPort(alias, port);
/* There are chances the the port has not been created in SAI and
* handling on the new created port for sflow goes the SAI port creation when dynamic port
* breakout command is executed. Needs to call getPort() here to ensure the port
* has been created by SAI.
*/
if (!gPortsOrch->getPort(alias, port))
{
it++;
continue;
}

if (op == SET_COMMAND)
{
bool admin_state = m_sflowStatus;
Expand Down
Loading