Skip to content

[action] [PR:1757] Fix switch stat counters by using get_stats_ext instead of get_stats#1775

Merged
mssonicbld merged 3 commits intosonic-net:202511from
mssonicbld:cherry/202511/1757
Feb 25, 2026
Merged

[action] [PR:1757] Fix switch stat counters by using get_stats_ext instead of get_stats#1775
mssonicbld merged 3 commits intosonic-net:202511from
mssonicbld:cherry/202511/1757

Conversation

@mssonicbld
Copy link
Collaborator

We were seeing N/A for switch trimming counters in sonic-mgmt testing with th5. It turns out Broadcom only supports get_stats_ext in their SAI implementation. This PR switches from using get_stats to get_stats_ext to retrieve counters that are object type switch. This PR may be breaking to other vendors if they need to use get_stats.

Backport Request

  • 202412
  • 202511

We were seeing N/A for switch trimming counters in sonic-mgmt testing with th5. It turns out Broadcom only supports get_stats_ext in their SAI implementation. This PR switches from using get_stats to get_stats_ext to retrieve counters that are object type switch. This PR may be breaking to other vendors if they need to use get_stats.

Backport Request
- [x] 202412
- [x] 202511
@mssonicbld
Copy link
Collaborator Author

Original PR: #1757

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit c7a61be into sonic-net:202511 Feb 25, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants