Skip to content

Commit c6dcc1e

Browse files
author
Shuotian Cheng
authored
[aclorch]: Fix remove_acl_counter function to remove the counter (sonic-net#274)
1 parent 72cd3f6 commit c6dcc1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchagent/aclorch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ bool AclRule::removeCounter()
515515
return true;
516516
}
517517

518-
if (sai_acl_api->remove_acl_entry(m_counterOid) != SAI_STATUS_SUCCESS)
518+
if (sai_acl_api->remove_acl_counter(m_counterOid) != SAI_STATUS_SUCCESS)
519519
{
520520
SWSS_LOG_ERROR("Failed to remove ACL counter for rule %s in table %s", m_id.c_str(), m_tableId.c_str());
521521
return false;

0 commit comments

Comments
 (0)