Skip to content

[Cherry pick]Add a parameter for libsaithrift to skip error on errno -2#12617

Merged
richardyu-ms merged 1 commit intosonic-net:202012from
Gfrom2016:zitingguo/cherry_pick_skip_unimp_on_202012
Nov 7, 2022
Merged

[Cherry pick]Add a parameter for libsaithrift to skip error on errno -2#12617
richardyu-ms merged 1 commit intosonic-net:202012from
Gfrom2016:zitingguo/cherry_pick_skip_unimp_on_202012

Conversation

@Gfrom2016
Copy link
Contributor

This PR is a cherry-pick of #12581

Why I did it

Add a parameter for building libsaithrift of the Broadcom platform to skip specific error codes.

How I did it

How to verify it

Manually built the libsaithrift package with the new parameter, and run the SAI test case with it.
Test the API that returns SAI_STATUS_NOT_SUPPORTED.
For example, for the Broadcom platform, API sai_thrift_flush_fdb_entries with attribute SAI_FDB_FLUSH_ENTRY_TYPE_STATIC return SAI_STATUS_NOT_SUPPORTED which is -2.
Run tests including this API, and they successfully skip tests with error code -2.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: zitingguo-ms [email protected]

@richardyu-ms richardyu-ms merged commit c10aa3b into sonic-net:202012 Nov 7, 2022
@Gfrom2016 Gfrom2016 deleted the zitingguo/cherry_pick_skip_unimp_on_202012 branch November 21, 2022 03:15
richardyu-ms pushed a commit to richardyu-ms/sonic-buildimage that referenced this pull request Nov 25, 2022
…2012

Merge external github 202012 branch to internal-202012.
Includes conflict resolved for caclmgrd during merge

Related work items: sonic-net#152, sonic-net#155, sonic-net#12577, sonic-net#12581, sonic-net#12600, sonic-net#12604, sonic-net#12617, sonic-net#12631, sonic-net#12641, sonic-net#12655, sonic-net#12666
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants