mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
Set upgrade ONIE and Firmware upgrade policy from sysconfig.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user