Skip to content

Commit

Permalink
Update acl type check logic (sonic-net#1886)
Browse files Browse the repository at this point in the history
Signed-off-by: bingwang <wang.bing@microsoft.com>
  • Loading branch information
bingwang-ms authored Sep 6, 2021
1 parent 62f7200 commit a8d6246
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions orchagent/aclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3685,6 +3685,11 @@ bool AclOrch::processAclTablePorts(string portList, AclTable &aclTable)

bool AclOrch::isAclTableTypeUpdated(acl_table_type_t table_type, AclTable &t)
{
if (m_isCombinedMirrorV6Table && (table_type == ACL_TABLE_MIRROR || table_type == ACL_TABLE_MIRRORV6))
{
// ACL_TABLE_MIRRORV6 and ACL_TABLE_MIRROR should be treated as same type in combined scenario
return !(t.type == ACL_TABLE_MIRROR || t.type == ACL_TABLE_MIRRORV6);
}
return (table_type != t.type);
}

Expand Down

0 comments on commit a8d6246

Please sign in to comment.