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

add flag to force bios upgrade #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion nx-os/poap/poap.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ def set_defaults_and_validate_options():
# MD5 Verification
set_default("disable_md5", False)

# force bios upgrade
set_default("force_bios_upgrade", False)

# Midway system and kickstart source file name.
# This should be a 6.x U6 or greater dual image.
# Required only if moving from pre 6.x U6 image to 7.x/higher image.
Expand Down Expand Up @@ -1499,9 +1502,12 @@ def install_bios():

def is_bios_upgrade_needed():
"""
Check if bios upgrade is required. It's required when the current
Check if bios upgrade is forced or required. It's required when the current
bios is not 3.x and image upgrade is from 6.x to 7.x or higher
"""
if options["force_bios_upgrade"]:
return True

global single_image
last_upgrade_bios = 3
ver = get_version()
Expand Down