Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Validate the linkType correctly when it can and cannot be changed #19

Merged

Conversation

almaslennikov
Copy link
Collaborator

If LINK_TYPE_P1 parameter is not present in the mstconfig defaults, we can't change the link type on the device and should return an error if the actual link type differs from the template. Otherwise, we should not raise an error.

pkg/host/configvalidation.go Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Oct 1, 2024

Pull Request Test Coverage Report for Build 11125131146

Details

  • 18 of 18 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+1.0%) to 59.951%

Files with Coverage Reduction New Missed Lines %
internal/controller/nicconfigurationtemplate_controller.go 2 86.07%
Totals Coverage Status
Change from base Build 11124943412: 1.0%
Covered Lines: 1699
Relevant Lines: 2834

💛 - Coveralls

If LINK_TYPE_P1 parameter is not present in the mstconfig defaults,
we can't change the link type on the device and should return an error
if the actual link type differs from the template.
Otherwise, we should not raise an error.

Signed-off-by: amaslennikov <[email protected]>
@almaslennikov almaslennikov merged commit 8cbc88b into Mellanox:main Oct 1, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants