Skip to content

Commit

Permalink
[vslib] fill aclcapability.is_action_list_mandatory field (sonic-net#957
Browse files Browse the repository at this point in the history
)

Signed-off-by: Stepan Blyshchak <[email protected]>
  • Loading branch information
stepanblyschak authored Nov 8, 2021
1 parent 5d518d7 commit d0ab2a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vslib/SwitchStateBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1450,12 +1450,14 @@ sai_status_t SwitchStateBase::set_acl_capabilities()
CHECK_STATUS(set(SAI_OBJECT_TYPE_SWITCH, m_switch_id, &attr));

attr.id = SAI_SWITCH_ATTR_ACL_STAGE_INGRESS;
attr.value.aclcapability.is_action_list_mandatory = false;
attr.value.aclcapability.action_list.list = reinterpret_cast<int32_t*>(m_ingress_acl_action_list.data());
attr.value.aclcapability.action_list.count = static_cast<uint32_t>(m_ingress_acl_action_list.size());

CHECK_STATUS(set(SAI_OBJECT_TYPE_SWITCH, m_switch_id, &attr));

attr.id = SAI_SWITCH_ATTR_ACL_STAGE_EGRESS;
attr.value.aclcapability.is_action_list_mandatory = false;
attr.value.aclcapability.action_list.list = reinterpret_cast<int32_t*>(m_egress_acl_action_list.data());
attr.value.aclcapability.action_list.count = static_cast<uint32_t>(m_egress_acl_action_list.size());

Expand Down

0 comments on commit d0ab2a9

Please sign in to comment.