Skip to content

Commit

Permalink
[dash]: Don't attempt to bind empty ACL groups
Browse files Browse the repository at this point in the history
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
  • Loading branch information
theasianpianist committed Jan 11, 2023
1 parent e328c46 commit 9d38430
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions orchagent/dash/dashaclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,12 @@ task_process_status DashAclOrch::bindAclToEni(DashAclTable &acl_table, const str
return task_need_retry;
}

if (acl_group->m_rule_count <= 0)
{
SWSS_LOG_INFO("acl group %s contains 0 rules, waiting for rule creation", acl.m_acl_group_id->c_str());
return task_need_retry;
}

attr.id = getSaiStage(direction, *(acl_group->m_ip_version), stage);
attr.value.oid = acl_group->m_dash_acl_group_id;
}
Expand Down

0 comments on commit 9d38430

Please sign in to comment.