Open tcusto opened 2 years ago
unsupported platform. Can you please contribute to this platform?
BRCM will take a look.
@zhangyanzhao @bingwang-ms SAI_MIRROR_SESSION_ATTR_POLICER is not currently supported in DNX. Syncd received an ERROR code from SAI within the SAI_STATUS_ATTR_NOT_SUPPORTED range. To prevent the crash, either syncd has to be modified to handle the error code gracefully or introduce a SAI capability check before setting SAI_MIRROR_SESSION_ATTR_POLICIER. Request feature owner of everflow to address the crash
Description
Orchagent errors out when configuring a everflow mirror session with a policer on the DNX platform. The policer is not supported on the ASIC and when the error is returned from sai, the session creation failure causes orchagent to exit.
Sample logs:
ERR syncd0#syncd: [06:00.0] SAI_API_MIRROR:_brcm_sai_dnx_create_mirror_session:2825 Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER ERR syncd0#syncd: [06:00.0] SAI_API_MIRROR:_brcm_sai_dnx_create_mirror_session:2857 Error processing mirror attributes ERR syncd0#syncd: :- sendApiResponse: api SAI_COMMON_API_CREATE failed in syncd mode: -327669 ERR swss0#orchagent: :- activateSession: Failed to activate mirroring session TEST_POLICER_SESSION ERR swss0#orchagent: :- handleSaiCreateStatus: Encountered failure in create operation, exiting orchagent, SAI API: SAI_API_MIRROR, status: -327669
Steps to reproduce the issue:
Describe the results you received:
orchagent exits
Describe the results you expected:
Either command rejected or policer configuration silently ignored.
Output of
show version
:msft-2205
Additional information you deem important (e.g. issue happens only occasionally):