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

[show] Added alias interface mode support for 'show interfaces counters ...' command #2468

Merged
merged 1 commit into from
May 5, 2023

Conversation

puffc
Copy link
Contributor

@puffc puffc commented Nov 2, 2022

Fixes #2464

Signed-off-by: Julian Chang - TW julianc@supermicro.com.tw

What I did

This change fixed "show interfaces counters xxx" output nothing when naming mode is alias.

How I did it

Convert the alias name into interface name for "show interfaces counters -u xxx", "show interfaces counters detailed xxx" and "show interfaces counters rif xxx" subcommands.

How to verify it

  1. Set interface naming mode to alias.
  2. Logout/Login.
  3. Verify "show interfaces counters -i Eth1".
  4. Verify "show interfaces counters rif Eth1".
  5. Verify "show interfaces counters detailed Eth1".
  6. Set interface naming mode to default.
  7. Logout/Login
  8. Repeat step 3~5.

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)

…rs ...' command

--- What I did
This change fixed "show interfaces counters xxx" output nothing when naming mode is alias. Fixes sonic-net#2464

--- How I did it
Convert the alias name into interface name for "show interfaces counters -u xxx", "show interfaces counters detailed xxx" and "show interfaces counters rif xxx" subcommands.

--- How to verify it
1. Set interface naming mode to alias.
2. Logout/Login.
3. Verify "show interfaces counters -i Eth1".
4. Verify "show interfaces counters rif Eth1".
5. Verify "show interfaces counters detailed Eth1".
6. Set interface naming mode to default.
7. Repeat step 3~5.

Signed-off-by: Julian Chang - TW <julianc@supermicro.com.tw>
@puffc
Copy link
Contributor Author

puffc commented Nov 3, 2022

@prsunny @yxieca Would you please review this PR? Thanks!

@puffc
Copy link
Contributor Author

puffc commented Nov 15, 2022

@zjswhhh Would you please review my PR? Thanks!

@zjswhhh zjswhhh self-requested a review November 16, 2022 19:06
@puffc
Copy link
Contributor Author

puffc commented Dec 14, 2022

Is there any expert can help to review this PR?

@puffc
Copy link
Contributor Author

puffc commented Dec 14, 2022

Actually the software test team of my company found many "alias naming mode" related problems. We don't know whether we should fix them one by one or just ask them to skip "alias naming mode" related testing....

Copy link
Contributor

@zjswhhh zjswhhh left a comment

Choose a reason for hiding this comment

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

lgtm

@puffc
Copy link
Contributor Author

puffc commented Dec 19, 2022

lgtm

Thanks for your time, @zjswhhh. Should I invite more reviewers to get this commit merged?

Julian

@qiluo-msft qiluo-msft self-requested a review May 5, 2023 18:08
@qiluo-msft qiluo-msft merged commit 1097373 into sonic-net:master May 5, 2023
pdhruv-marvell pushed a commit to pdhruv-marvell/sonic-utilities that referenced this pull request Aug 23, 2023
…rs ...' command (sonic-net#2468)

Fixes sonic-net#2464

#### What I did
This change fixed "show interfaces counters xxx" output nothing when naming mode is alias. 

#### How I did it
Convert the alias name into interface name for "show interfaces counters -u xxx", "show interfaces counters detailed xxx" and "show interfaces counters rif xxx" subcommands.

#### How to verify it
1. Set interface naming mode to alias.
2. Logout/Login.
3. Verify "show interfaces counters -i Eth1".
4. Verify "show interfaces counters rif Eth1".
5. Verify "show interfaces counters detailed Eth1".
6. Set interface naming mode to default.
7. Logout/Login
8. Repeat step 3~5.
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.

In alias mode, "show interfaces counters detailed <alias_name>" cannot be displayed.
3 participants