Skip to content

Commit 1b8bd94

Browse files
authored
Create ACL table fails due to incorrect check for supported ACL actions #11235 (#2351)
Signed-off-by: rck-innovium <[email protected]>
1 parent 1ed0b4b commit 1b8bd94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

orchagent/aclorch.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static const acl_capabilities_t defaultAclActionsSupported =
153153
}
154154
};
155155

156-
static acl_table_action_list_lookup_t defaultAclActionList =
156+
static acl_table_action_list_lookup_t defaultAclActionList =
157157
{
158158
{
159159
// L3
@@ -326,7 +326,7 @@ static acl_table_action_list_lookup_t defaultAclActionList =
326326
// The match fields for certain ACL table type are not exactly the same between INGRESS and EGRESS.
327327
// For example, we can only match IN_PORT for PFCWD table type at INGRESS.
328328
// Hence we need to specify stage particular matching fields in stageMandatoryMatchFields
329-
static acl_table_match_field_lookup_t stageMandatoryMatchFields =
329+
static acl_table_match_field_lookup_t stageMandatoryMatchFields =
330330
{
331331
{
332332
// TABLE_TYPE_PFCWD
@@ -2045,7 +2045,7 @@ bool AclTable::addMandatoryActions()
20452045
// Add the default action list
20462046
for (auto action : defaultAclActionList[type.getName()][stage])
20472047
{
2048-
if (m_pAclOrch->isAclActionSupported(stage, acl_action))
2048+
if (m_pAclOrch->isAclActionSupported(stage, action))
20492049
{
20502050
SWSS_LOG_INFO("Added default action for table type %s stage %s",
20512051
type.getName().c_str(),

0 commit comments

Comments
 (0)