-
Notifications
You must be signed in to change notification settings - Fork 667
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
Conversation
…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>
@zjswhhh Would you please review my PR? Thanks! |
Is there any expert can help to review this PR? |
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.... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks for your time, @zjswhhh. Should I invite more reviewers to get this commit merged? Julian |
…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.
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
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)