forked from sonic-net/sonic-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[counterpoll] make the 'eni' command functional only on the DPU (soni…
…c-net#3679) - What I did To make the 'eni' command only appear in the list of commands when the 'switch_type' is 'dpu'. This way the "counterpoll --help" output shows only what is supported on the system. Current output (contains "eni" while the switch_type is not "dpu"): - How I did it Added a register_dynamic_commands() to dynamically add the 'eni' command. Updated the unit tests. - How to verify it Run the counterpoll_test.py test Signed-off-by: Yakiv Huryk <yhuryk@nvidia.com>
- Loading branch information
1 parent
2f8508f
commit 34d2c8c
Showing
2 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters