[Nexthop][m4062nhp] Select platform mapping and SDK YAML by switch-card revision - #1618
Draft
zackary-nexthop wants to merge 3 commits into
Draft
zackary-nexthop wants to merge 3 commits into
zackary-nexthop wants to merge 3 commits into
Conversation
zackary-nexthop
force-pushed
the
zackary-nexthop.m4062nhp.switch-card-revision
branch
5 times, most recently
from
September 14, 2026 13:11
6382cd2 to
e9f7704
Compare
Signed-off-by: Zackary Ayoun <zackary@nexthop.ai>
zackary-nexthop
force-pushed
the
zackary-nexthop.m4062nhp.switch-card-revision
branch
from
September 16, 2026 14:50
e9f7704 to
404c86b
Compare
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.
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit installpre-commit runSummary
The m4062nhp P2 switch card rewires the front panel, so a single image has to
pick the right platform mapping and HSDK YAML for the switch-card revision it
boots on.
pmUnitVersionsmatcher(
productionState,productionSubState,respinVariantIndicator), the samemodel platform_manager already uses for
versionedPmUnitConfigs. Thedescriptor registry reads the chassis EEPROM once. A versioned descriptor
that matches wins, otherwise the unversioned descriptor is the default. If
the EEPROM cannot be read the registry warns once and uses the default.
Platforms without a matcher are unaffected.
SaiBcmPlatform::getHwConfig()loads theasic_config.yamlthat sits nextto the selected descriptor before falling back to the embedded config, so
the SDK YAML follows the same revision selection as the mapping.
platform_mapping/is the P2 default andvariants/m4062nhp_p1/matchesproductionState=1. The variant carries itsown descriptor, static mapping, SI settings and profile settings; the port
profile mapping and vendor config are inherited from the base.
asic_configgrows
defaultandp1variants. The generator itself is unchanged apartfrom parsing the new descriptor column.
entry.
Test Plan
m4062nhp_p1, one P2 system selects the default. Themapping and SDK YAML deployed on all three are byte-identical to the
artifacts in this PR.
64/64.
drops exactly that port and its cabled peer.
verify_generated_files.pypasses; every other platform regeneratesbyte-identical.
pre-commit runpasses.