Skip to content

Commit fc20d6b

Browse files
Address the code review comments
Signed-off-by: saksarav <[email protected]>
1 parent ec462f1 commit fc20d6b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

orchagent/portsorch.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5153,7 +5153,18 @@ void PortsOrch::doPortTask(Consumer &consumer)
51535153
}
51545154
if (pCfg.media_type.is_set)
51555155
{
5156-
setPortMediaType(p, pCfg.media_type.value);
5156+
if (setPortMediaType(p, pCfg.media_type.value))
5157+
{
5158+
SWSS_LOG_NOTICE("Set port %s Media Type %s is successful",
5159+
p.m_alias.c_str(), pCfg.media_type.value.c_str());
5160+
}
5161+
else
5162+
{
5163+
SWSS_LOG_ERROR("Failed to set port %s Media Type %s",
5164+
p.m_alias.c_str(), pCfg.media_type.value.c_str());
5165+
it++;
5166+
continue;
5167+
}
51575168
}
51585169
}
51595170
}

0 commit comments

Comments
 (0)