Skip to content

Commit

Permalink
Allow L4 port range egress ACL rules on DNX (#3014)
Browse files Browse the repository at this point in the history
Allow L4 port range egress ACL rules on DNX (#3014)
  • Loading branch information
arista-nwolfe authored and mssonicbld committed Feb 24, 2024
1 parent ac94f0b commit 5d91f10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion orchagent/aclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2201,9 +2201,10 @@ bool AclTable::addStageMandatoryRangeFields()
SWSS_LOG_ENTER();

string platform = getenv("platform") ? getenv("platform") : "";
string sub_platform = getenv("sub_platform") ? getenv("sub_platform") : "";
auto match = SAI_ACL_TABLE_ATTR_FIELD_ACL_RANGE_TYPE;

if ((platform == BRCM_PLATFORM_SUBSTRING) &&
if ((platform == BRCM_PLATFORM_SUBSTRING) && (sub_platform != BRCM_DNX_PLATFORM_SUBSTRING) &&
(stage == ACL_STAGE_EGRESS))
{
return false;
Expand Down

0 comments on commit 5d91f10

Please sign in to comment.