Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[202012][VxLAN]VxLAN Tunnel Counters and Rates implementation #2353

Merged
merged 5 commits into from
Sep 9, 2022

Conversation

dgsudharsan
Copy link
Collaborator

Backport of #1748

What I did

Implemented Vxlan counters and rates. Defined show commands for counters and rates similar to port and tunnel rates.

How I did it

Implemented tunnelstat utility and used it in show vxlan counters command.

How to verify it

Using unit tests in CLI

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

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

show vxlan counters
    IFACE    RX_PKTS    RX_BYTES    RX_PPS    TX_PKTS    TX_BYTES    TX_PPS
---------  ---------  ----------  --------  ---------  ----------  --------
vtep_1336      2,359         N/A    0.99/s    205,972         N/A   86.93/s

show vxlan counters  vtep_1336
vtep_1336
---------

        RX:
                13 packets
               N/A bytes
        TX:
             1,164 packets
               N/A bytes

@lgtm-com
Copy link

lgtm-com bot commented Sep 7, 2022

This pull request introduces 1 alert when merging e6da9a6 into 839625d - view on LGTM.com

new alerts:

  • 1 for Unused import

@dgsudharsan dgsudharsan requested a review from prsunny September 7, 2022 00:03
@dgsudharsan
Copy link
Collaborator Author

LGTM issue same as #1748 (comment)

@prsunny prsunny merged commit 2604390 into sonic-net:202012 Sep 9, 2022
dgsudharsan added a commit to dgsudharsan/sonic-buildimage that referenced this pull request Sep 13, 2022
Update sonic-utilities submodule pointer to include the following:
* [202012][VxLAN]VxLAN Tunnel Counters and Rates implementation ([sonic-net#2353](sonic-net/sonic-utilities#2353))

Signed-off-by: dgsudharsan <sudharsand@nvidia.com>
prsunny pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Sep 14, 2022
Update sonic-utilities submodule pointer to include the following:
* [202012][VxLAN]VxLAN Tunnel Counters and Rates implementation ([#2353](sonic-net/sonic-utilities#2353))
@dgsudharsan dgsudharsan deleted the vxlan_counters_2012 branch March 9, 2023 02:05
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