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

[mellanox] Remove validation for fw filenames with no extension #8956

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

alexrallen
Copy link
Contributor

Why I did it

Currently the mellanox platform API is validating the file extensions of firmware packages to be installed for basic sanity checking. However, ONIE packages do not have an extension and as such if there is a "." in the name it is taken to be an extension and then fails the sanity check.

How I did it

I removed the check which ensures that ONIE images don't have a file extension.

How to verify it

Name the ONIE updater file 2021.onie and attempt to install it via fwutil install fw 2021.onie --yes

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

[mellanox] Remove validation for fw filenames with no extension

A picture of a cute animal (not mandatory but encouraged)

merlin_190551999_3680585e-dbdd-4bff-96ad-0d74d1239df8-superJumbo

@sujinmkang sujinmkang merged commit e6e6f41 into sonic-net:master Oct 15, 2021
judyjoseph pushed a commit that referenced this pull request Oct 21, 2021
Why I did it
Currently the mellanox platform API is validating the file extensions of firmware packages to be installed for basic sanity checking. However, ONIE packages do not have an extension and as such if there is a "." in the name it is taken to be an extension and then fails the sanity check.

How I did it
I removed the check which ensures that ONIE images don't have a file extension.

How to verify it
Name the ONIE updater file 2021.onie and attempt to install it via fwutil install fw 2021.onie --yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants