Skip to content

[action] [PR:3920] [trim]: Add Packet Trimming Asym DSCP CLI#202

Merged
mssonicbld merged 1 commit into
Azure:202412from
mssonicbld:cherry/msft-202412/3920
Jul 13, 2025
Merged

[action] [PR:3920] [trim]: Add Packet Trimming Asym DSCP CLI#202
mssonicbld merged 1 commit into
Azure:202412from
mssonicbld:cherry/msft-202412/3920

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

Signed-off-by: Nazarii Hnydyn nazariig@nvidia.com

HLD: sonic-net/SONiC#1988

What I did

  • Implemented CLI for Packet Trimming Asymmetric DSCP feature

How I did it

  • Integrated Packet Trimming Asymmetric DSCP interface into config and show CLI root

How to verify it

  1. Run Packet Trimming CLI UTs

Previous command output (if the output of a command-line utility has changed)

admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | 25      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+

New command output (if the output of a command-line utility has changed)

admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | from-tc |
+-----------------------------+---------+
| Packet trimming TC value    | 10      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+

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

      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>

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

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

    If this is a bug fix, make sure your description includes "closes #xxxx",
    "fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related
    issue when the PR is merged.

    If you are adding/modifying/removing any command or utility script, please also
    make sure to add/modify/remove any unit tests from the tests
    directory as appropriate.

    If you are modifying or removing an existing 'show', 'config' or 'sonic-clear'
    subcommand, or you are adding a new subcommand, please make sure you also
    update the Command Line Reference Guide (doc/Command-Reference.md) to reflect
    your changes.

    Please provide the following information:
-->

**HLD:** sonic-net/SONiC#1988

#### What I did
* Implemented CLI for Packet Trimming Asymmetric DSCP feature

#### How I did it
* Integrated Packet Trimming Asymmetric DSCP interface into `config` and `show` CLI root

#### How to verify it
1. Run Packet Trimming CLI UTs

#### Previous command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | 25      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
```

#### New command output (if the output of a command-line utility has changed)
```
admin@sonic:/home/admin# show switch-trimming global
+-----------------------------+---------+
| Configuration               | Value   |
+=============================+=========+
| Packet trimming size        | 256     |
+-----------------------------+---------+
| Packet trimming DSCP value  | from-tc |
+-----------------------------+---------+
| Packet trimming TC value    | 10      |
+-----------------------------+---------+
| Packet trimming queue index | 5       |
+-----------------------------+---------+
```

#### A picture of a cute animal (not mandatory but encouraged)
```
      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``
```
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: sonic-net/sonic-utilities#3920

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 1459455 into Azure:202412 Jul 13, 2025
4 of 6 checks passed
mssonicbld added a commit that referenced this pull request Jul 14, 2025
```<br>* da2ab2f - (HEAD -> 202503) Merge branch '202412' of https://github.com/Azure/sonic-utilities.msft into 202503 (2025-07-14) [Sonic Automation]
* 1459455 - (base/202412) [trim]: Add Packet Trimming Asym DSCP CLI (#202) (2025-07-14) [mssonicbld]<br>```
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