From 67b31369d3f077621224f4e029cbc9288c82cde0 Mon Sep 17 00:00:00 2001 From: Stepan Blyshchak <38952541+stepanblyschak@users.noreply.github.com> Date: Mon, 8 Nov 2021 16:52:11 +0200 Subject: [PATCH] [vslib] fill aclcapability.is_action_list_mandatory field (#957) Signed-off-by: Stepan Blyshchak --- vslib/SwitchStateBase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vslib/SwitchStateBase.cpp b/vslib/SwitchStateBase.cpp index a9171bdff6e4..9fd3d449ede3 100644 --- a/vslib/SwitchStateBase.cpp +++ b/vslib/SwitchStateBase.cpp @@ -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(m_ingress_acl_action_list.data()); attr.value.aclcapability.action_list.count = static_cast(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(m_egress_acl_action_list.data()); attr.value.aclcapability.action_list.count = static_cast(m_egress_acl_action_list.size());