Skip to content

Commit 8b1d0f2

Browse files
Add check for empty m_priority_group_ids in initializePriorityGroupsBulk
1 parent 8b8918a commit 8b1d0f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

orchagent/portsorch.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6438,6 +6438,10 @@ void PortsOrch::initializePriorityGroupsBulk(std::vector<Port>& ports)
64386438
for (size_t idx = 0; idx < portCount; idx++)
64396439
{
64406440
const auto& port = ports[idx];
6441+
if (port.m_priority_group_ids.size() == 0)
6442+
{
6443+
continue;
6444+
}
64416445
const auto status = bulker.statuses[idx];
64426446

64436447
if (status != SAI_STATUS_SUCCESS)

0 commit comments

Comments
 (0)