Set upgrade ONIE and Firmware upgrade policy from sysconfig.

This commit is contained in:
Jeffrey Townsend
2016-12-07 17:55:27 +00:00
parent a6bb28ee54
commit 2241b65dfa
2 changed files with 6 additions and 0 deletions

View File

@@ -16,6 +16,9 @@ class FirmwareUpgrade(ubase.BaseOnieUpgrade):
current_version_key="Current Firmware Version"
next_version_key="Next Firmware Version"
def auto_upgrade_default(self):
return sysconfig.upgrade.firmware.auto
def init_versions(self):
# Get the current platform firmware version

View File

@@ -16,6 +16,9 @@ class OnieUpgrade(ubase.BaseOnieUpgrade):
current_version_key="Current ONIE Version"
next_version_key="Next ONIE Version"
def auto_upgrade_default(self):
return sysconfig.upgrade.onie.auto
def init_versions(self):
# Get the current platform ONIE version
self.current_version = self.platform.onie_version()