Skip to content

[ACL range] ACL range not supported in egress ACL table #2351

Closed
@keboliu

Description

@keboliu

Description

with the latest master image, "SAI_ACL_TABLE_ATTR_FIELD_ACL_RANGE_TYPE" only supported in ingress ACL table but not in egress ACL table, please chek the below code:
https://github.com/Azure/sonic-swss/blob/7fd158f3f966df10582ec85cc01e09e0ad96335f/orchagent/aclorch.cpp#L1154

```
if (stage == ACL_STAGE_INGRESS)
{
    int32_t range_types_list[] = { SAI_ACL_RANGE_TYPE_L4_DST_PORT_RANGE, SAI_ACL_RANGE_TYPE_L4_SRC_PORT_RANGE };
    attr.id = SAI_ACL_TABLE_ATTR_FIELD_ACL_RANGE_TYPE;
    attr.value.s32list.count = (uint32_t)(sizeof(range_types_list) / sizeof(range_types_list[0]));
    attr.value.s32list.list = range_types_list;
    table_attrs.push_back(attr);
}
```

Any reason to rule out egress ACL table here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions