fix: scope Spectrum-X NIC config to east-west devices - #168
Merged
Conversation
Signed-off-by: Alexander Maslennikov <amaslennikov@nvidia.com>
Signed-off-by: Alexander Maslennikov <amaslennikov@nvidia.com>
Greptile SummaryThe PR narrows Spectrum-X NIC configuration to each source hardware group’s east-west PCI inventory and keeps retained template identities stable across full and subset renders.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Source hardware group] --> B[Filter east-west PFs]
B --> C[Derive NIC type]
B --> D[Normalize PCI addresses]
C --> E[Per-source NicConfigurationTemplate]
D --> E
E --> F[Match type and PCI intersection]
F --> G[Configure east-west NICs only]
Reviews (2): Last reviewed commit: "fix: keep NIC template names stable acro..." | Re-trigger Greptile |
Signed-off-by: Alexander Maslennikov <amaslennikov@nvidia.com>
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.
What changed
NicConfigurationTemplateresources per source hardware groupspec.nicSelectoralongside the derived NIC typeWhy
NIC Configuration Operator evaluates
nicTypeandpciAddressestogether, but the existing Launch Kit templates emitted onlynicType. A BlueField-3 DPU and BlueField-3 SuperNIC can both reporta2dc, so the type-only selector can match and propagate the east-west Spectrum-X configuration to a north-south device on the same selected node.Per-source PCI selectors avoid a merged cross-product between machine layouts and make the selected device set exactly the east-west inventory discovered for that source group. Source-based names remain stable when switching between full generation and
--groups; older merged type-only templates are surfaced by deploy preflight and can be safely removed with--overwrite-existing.Validation
make buildmake testmkdocs build --strict --cleannonenone,swplb, andhwplbnonemake lintcould not run locally becausegolangci-lintis not installed; the GitHub Actions lint job is green.