Skip to content

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

Merged
sujinmkang merged 1 commit intosonic-net:masterfrom
alexrallen:fwutil_ext_val
Oct 15, 2021
Merged

[mellanox] Remove validation for fw filenames with no extension#8956
sujinmkang merged 1 commit intosonic-net:masterfrom
alexrallen:fwutil_ext_val

Conversation

@alexrallen
Copy link
Copy Markdown
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

@alexrallen alexrallen requested a review from lguohan as a code owner October 12, 2021 05:50
@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