-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add functionality for different calnex firmware file formats (#427)
Summary: Currently the code only works for a specific string of the filename. This can be different depending on the release that is sent. If we are doing an engineering release or full release. We normally now send files of the format calnex_combined_fw now that we have installer files for both sentinel and sentry included in the file Pull Request resolved: #427 Test Plan: [[email protected]] [~/meta-time] (main *$%<>) $ ./cmd/calnex/calnex firmware --device sen050.sen.local --file sentinel_fw_v2.21.2.0.tar --insecureTLS WARN[0000] sen050.sen.local: is running 21.0.0.9718-d-20241125, latest is 21.2.0. Needs an update INFO[0000] sen050.sen.local: dry run. Not upgrading firmware [[email protected]] [~/meta-time] (main *$%<>) $ ./cmd/calnex/calnex firmware --device sen050.sen.local --file calnex_combined_fw_R21.2.0.tar --insecureTLS WARN[0000] sen050.sen.local: is running 21.0.0.9718-d-20241125, latest is 21.2.0. Needs an update INFO[0000] sen050.sen.local: dry run. Not upgrading firmware successfully extracting the correct part of the firmware from each differently formatted file name Reviewed By: t3lurid3 Differential Revision: D66651957 Pulled By: deathowl fbshipit-source-id: b2425f6805d0312939fd62686a67589ec976b9ae
- Loading branch information
1 parent
de5a386
commit 4b2e8e7
Showing
3 changed files
with
108 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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