sonic-utilities
sonic-utilities copied to clipboard
[show] Added alias interface mode support for 'show interfaces counters ...' command
Fixes #2464
Signed-off-by: Julian Chang - TW [email protected]
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
- Set interface naming mode to alias.
- Logout/Login.
- Verify "show interfaces counters -i Eth1".
- Verify "show interfaces counters rif Eth1".
- Verify "show interfaces counters detailed Eth1".
- Set interface naming mode to default.
- Logout/Login
- 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)
@prsunny @yxieca Would you please review this PR? Thanks!
@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....
lgtm
Thanks for your time, @zjswhhh. Should I invite more reviewers to get this commit merged?
Julian