You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[counterpoll] make the 'eni' command functional only on the DPU (#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>
0 commit comments