Skip to content
Merged
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
9 changes: 8 additions & 1 deletion cfgmgr/portmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ bool PortMgr::setPortMtu(const string &alias, const string &mtu)
}
else
{
throw runtime_error(cmd_str + " : " + res);
// This failure can happen on PortChannels during system startup. A PortChannel enslaves
// members before a default MTU is set on the port (set in this file, not via the config!).
// Therefore this error is always emitted on startup for portchannel members.
// In theory we shouldn't log in this case, the correct fix is to detect the
// port is part of a portchannel and not even try this but that is rejected for
// possible performance implications.
SWSS_LOG_WARN("Setting mtu to alias:%s netdev failed (isPortStateOk=true) with cmd:%s, rc:%d, error:%s", alias.c_str(), cmd_str.c_str(), ret, res.c_str());
return false;
}
return true;
}
Expand Down