Skip to content

Comments

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

Merged
mssonicbld merged 1 commit intoAzure:202412from
mssonicbld:cherry/msft-202412/1757
Feb 11, 2026
Merged

[action] [PR:1757] Fix switch stat counters by using get_stats_ext instead of get_stats#105
mssonicbld merged 1 commit intoAzure:202412from
mssonicbld:cherry/msft-202412/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: sonic-net/sonic-sairedis#1757

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit e07ae10 into Azure:202412 Feb 11, 2026
4 of 7 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.

1 participant