-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SmartSwitch] Define DPU helper functions (#20724)
Why I did it Add new DPU helper functions to avoid code duplication How I did it Define new is_dpu, get_num_dpus helpers. Define get_platform_json_data and get_dpu_info helper function for common code and refactor code accordingly. How to verify it Verified the changes on smart switch
- Loading branch information
Showing
2 changed files
with
268 additions
and
28 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