[Mellanox] [SONiC BMC] Support BMC side and align host side for usb0 configuration#27750
Open
benle7 wants to merge 1 commit into
Open
[Mellanox] [SONiC BMC] Support BMC side and align host side for usb0 configuration#27750benle7 wants to merge 1 commit into
benle7 wants to merge 1 commit into
Conversation
Signed-off-by: Ben Levi <belevi@nvidia.com>
Collaborator
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
oleksandrivantsiv
approved these changes
Jun 8, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
This change enables SONiC BMC USB link configuration on Mellanox Switch-BMC platforms and aligns
Switch-Host detection logic with the new runtime BMC infrastructure. The goal is to use consistent
role-based checks (
switch_host/switch_bmc) and runtime BMC data, instead of legacy platform-filepresence assumptions.
Work item tracking
How I did it
device/aspeed/arm64-aspeed_nvidia_ast2700_bmc-r0/bmc.jsondevice/aspeed/arm64-aspeed_nvidia_ast2700_bmc-r0/platform_env.conftoswitch_bmc=1device/mellanox/x86_64-nvidia_sn6600_ld-r0/platform_env.confwithswitch_host=1device/mellanox/x86_64-nvidia_sn6810_ld-r0/platform_env.confwithswitch_host=1device_data.is_platform_with_bmc()now checksis_switch_host()+get_bmc_data()bmc.pynow gates_get_bmc_values()viaDeviceDataManager.is_platform_with_bmc()component.pyCPLD aux-power path now usesDeviceDataManager.is_platform_with_bmc()tests/test_bmc.pytests/test_component.pyHow to verify it
platform_env.confhasswitch_host=1/etc/sonic/bmc.jsonis present after bootusb0comes up with host-side IP frombmc_if_addrplatform_env.confhasswitch_bmc=1/etc/sonic/bmc.jsonis present after bootusb0uses BMC-side IP frombmc_addrpytest platform/mellanox/mlnx-platform-api/tests/test_bmc.pypytest platform/mellanox/mlnx-platform-api/tests/test_component.pyWhich release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)