From 1b8bd94ef7e44f6089fc12efd456a3caa7aafd3f Mon Sep 17 00:00:00 2001 From: Ravindranath C K Date: Fri, 24 Jun 2022 20:20:52 +0530 Subject: [PATCH] Create ACL table fails due to incorrect check for supported ACL actions #11235 (#2351) Signed-off-by: rck-innovium --- orchagent/aclorch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orchagent/aclorch.cpp b/orchagent/aclorch.cpp index aa577110ec03..ddeca7adf4a7 100644 --- a/orchagent/aclorch.cpp +++ b/orchagent/aclorch.cpp @@ -153,7 +153,7 @@ static const acl_capabilities_t defaultAclActionsSupported = } }; -static acl_table_action_list_lookup_t defaultAclActionList = +static acl_table_action_list_lookup_t defaultAclActionList = { { // L3 @@ -326,7 +326,7 @@ static acl_table_action_list_lookup_t defaultAclActionList = // The match fields for certain ACL table type are not exactly the same between INGRESS and EGRESS. // For example, we can only match IN_PORT for PFCWD table type at INGRESS. // Hence we need to specify stage particular matching fields in stageMandatoryMatchFields -static acl_table_match_field_lookup_t stageMandatoryMatchFields = +static acl_table_match_field_lookup_t stageMandatoryMatchFields = { { // TABLE_TYPE_PFCWD @@ -2045,7 +2045,7 @@ bool AclTable::addMandatoryActions() // Add the default action list for (auto action : defaultAclActionList[type.getName()][stage]) { - if (m_pAclOrch->isAclActionSupported(stage, acl_action)) + if (m_pAclOrch->isAclActionSupported(stage, action)) { SWSS_LOG_INFO("Added default action for table type %s stage %s", type.getName().c_str(),