Skip to content

[SNAPPI] pretty print tgen stats#21500

Merged
auspham merged 5 commits intosonic-net:masterfrom
vikumarks:pr-pretty-print-tgen-stats
Dec 2, 2025
Merged

[SNAPPI] pretty print tgen stats#21500
auspham merged 5 commits intosonic-net:masterfrom
vikumarks:pr-pretty-print-tgen-stats

Conversation

@vikumarks
Copy link
Copy Markdown
Contributor

Summary: Pretty print tgen stats
Fixes # (issue)

Type of change

Old output

01/12/2025 12:45:10 traffic_generation.run_traffic           L0673 INFO   | Polling TGEN for in-flight traffic statistics...
01/12/2025 12:45:12 traffic_generation.run_traffic           L0678 INFO   | In-flight traffic statistics for flows: ['Test Flow 1 -> 0', 'Test Flow 2 -> 0', 'Background Flow 1 -> 0', 'Background Flow 2 -> 0']
01/12/2025 12:45:12 traffic_generation.run_traffic           L0679 INFO   | In-flight TX frames: [84570230, 84570229, 68054948, 68054950]
01/12/2025 12:45:12 traffic_generation.run_traffic           L0680 INFO   | In-flight RX frames: [72905510, 72905511, 68045129, 68045130]

New Ouptput

In-flight traffic statistics for flows: 
+----------------------------------+----------+----------+
| Flow                             |       Tx |       Rx |
|----------------------------------+----------+----------|
| Test Flow 1 -> 0 Rate:20         | 47691372 | 47683158 |
| Test Flow 2 -> 0 Rate:10         | 28004333 | 28004316 |
| 1 Background Flow 1 -> 0 Rate:20 | 56008665 | 51089091 |
| 2 Background Flow 2 -> 0 Rate:20 | 56008666 | 51089091 |
| 3 Background Flow 1 -> 0 Rate:20 | 56008664 | 51089091 |
| 4 Background Flow 2 -> 0 Rate:20 | 56008666 | 51089090 |
+----------------------------------+----------+----------+
  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@vikumarks vikumarks force-pushed the pr-pretty-print-tgen-stats branch from 54bdbcd to f135f26 Compare December 1, 2025 20:41
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

vmittal-msft and others added 4 commits December 1, 2025 12:46
@vikumarks vikumarks force-pushed the pr-pretty-print-tgen-stats branch from f135f26 to d4a4bfe Compare December 1, 2025 20:46
@vikumarks vikumarks requested a review from a team as a code owner December 1, 2025 20:46
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

@auspham auspham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@auspham auspham merged commit 53e586a into sonic-net:master Dec 2, 2025
21 checks passed
@vmittal-msft vmittal-msft added the Request for 202511 branch Request to backport a change to 202511 branch label Dec 4, 2025
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Dec 4, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202511: #21553

opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
dcaugher pushed a commit to dcaugher/sonic-mgmt that referenced this pull request Dec 8, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Dan Caugherty <[email protected]>
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Dec 9, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Nishanth Sampath Kumar <[email protected]>
selldinesh pushed a commit to selldinesh/sonic-mgmt that referenced this pull request Dec 11, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: selldinesh <[email protected]>
echuawu pushed a commit to echuawu/sonic-mgmt that referenced this pull request Dec 12, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
saravanan-nexthop pushed a commit to saravanan-nexthop/sonic-mgmt that referenced this pull request Dec 15, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Saravanan <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Guy Shemesh <[email protected]>
vrajeshe pushed a commit to Akshath-17/sonic-mgmt that referenced this pull request Jan 4, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Venkata Gouri Rajesh Etla <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
yifan-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Jan 14, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: YiFan Wang <[email protected]>
PriyanshTratiya pushed a commit to PriyanshTratiya/sonic-mgmt that referenced this pull request Jan 21, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Priyansh Tratiya <[email protected]>
lakshmi-nexthop pushed a commit to lakshmi-nexthop/sonic-mgmt that referenced this pull request Jan 28, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Lakshmi Yarramaneni <[email protected]>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Jan 29, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Yael Tzur <[email protected]>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Feb 6, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Feb 13, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Raghavendran Ramanathan <[email protected]>
anilal-amd pushed a commit to anilal-amd/anilal-forked-sonic-mgmt that referenced this pull request Feb 19, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Zhuohui Tan <[email protected]>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…21500)

<!--
 Please make sure you've read and understood our contributing guidelines:
 https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

 failure_prs.log Make sure all your commits include a signature generated with `git commit -s` **

 If this is a bug fix, make sure your description includes "fixes #xxxx", or
 "closes #xxxx" or "resolves #xxxx"

 Please provide the following information:
-->

#### Why I did it

Added a new field in FLEX_COUNTER_TABLE to represent the bulk chunk size for bulk counter polling.

##### Work item tracking
- Microsoft ADO **(number only)**:

#### How I did it

#### How to verify it

<!--
If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012.
-->

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

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [ ] 202205
- [ ] 202211
- [ ] 202305

#### Tested branch (Please provide the tested image version)

<!--
- Please provide tested image version
- e.g.
- [x] 20201231.100
-->

- [ ] <!-- image version 1 -->
- [ ] <!-- image version 2 -->

#### Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in 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
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md
-->

#### A picture of a cute animal (not mandatory but encouraged)
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Mar 17, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Abhishek <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
* [202511] Update PR template (sonic-net#21395)

Signed-off-by: vikumarks <[email protected]>

* pretty print tgen stats

Signed-off-by: vikumarks <[email protected]>

* Revert "pretty print tgen stats"

This reverts commit e67d03b.

Signed-off-by: vikumarks <[email protected]>

* Pretty print tgen Stats

Signed-off-by: vikumarks <[email protected]>

---------

Signed-off-by: vikumarks <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
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.

5 participants