-
Notifications
You must be signed in to change notification settings - Fork 0
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] Update mlnx-fw-upgrade.j2 to support BF3 DPU NIC FW. #31
Conversation
e58bc4d
to
2240d51
Compare
@@ -339,7 +427,13 @@ function UpgradeFW() { | |||
if [[ "${_FW_CURRENT}" == "${_FW_AVAILABLE}" ]]; then | |||
ExitSuccess "firmware is up to date" | |||
else | |||
if [[ "${DRY_RUN}" == "${YES_PARAM}" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this? Just for user convenience?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, used it in bfnet.sh. I think "upgrade_check" or similar name would be better than dry_run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't agree with this. --dry-run
is widely used by Linux commands for purposes like this.
platform/mellanox/mlnx-fw-upgrade.j2
Outdated
|
||
RunCmd "${LIST_CONTENT_CMD} -i ${_FW_FILE} -d ${_MST_DEVICE} -o ${LIST_CONTENT_FILE}" | ||
|
||
ERROR_CODE="$?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oleksandrivantsiv why do we need it? RunCmd
exits script if rc != 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed, thanks
2240d51
to
87ea9cc
Compare
Why I did it
Extend
mlnx-fw-upgrade.j2
to support the upgrade of the DPU NIC FWWork item tracking
How I did it
Add support for the new device to the script
How to verify it
Compile and install an image
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)