Fix bug of missing versions when setting secure boot flag
iRMC firmware versions 8.64F and 8.84F or newer
require bios config data provided with versions.
This patch updates the existing set_secure_boot_mode()
as it does not provide versions when setting.
Tested on servers with FW 8.43F, 8.64F and 8.84F.
Change-Id: I97aa13436c80be311738712a3c36cc4a8beb9e63
(cherry picked from commit ea8d111201
)
This commit is contained in:
@@ -703,8 +703,10 @@ def set_secure_boot_mode(irmc_info, enable):
|
||||
|
||||
bios_config_data = {
|
||||
'Server': {
|
||||
'@Version': '1.01',
|
||||
'SystemConfig': {
|
||||
'BiosConfig': {
|
||||
'@Version': '1.01',
|
||||
'SecurityConfig': {
|
||||
'SecureBootControlEnabled': enable
|
||||
}
|
||||
|
@@ -997,8 +997,10 @@ class ELCMTestCase(testtools.TestCase):
|
||||
elcm.set_secure_boot_mode(irmc_info=self.irmc_info, enable=True)
|
||||
bios_config_data = {
|
||||
'Server': {
|
||||
'@Version': '1.01',
|
||||
'SystemConfig': {
|
||||
'BiosConfig': {
|
||||
'@Version': '1.01',
|
||||
'SecurityConfig': {
|
||||
'SecureBootControlEnabled': True
|
||||
}
|
||||
@@ -1014,8 +1016,10 @@ class ELCMTestCase(testtools.TestCase):
|
||||
elcm.set_secure_boot_mode(irmc_info=self.irmc_info, enable=False)
|
||||
bios_config_data = {
|
||||
'Server': {
|
||||
'@Version': '1.01',
|
||||
'SystemConfig': {
|
||||
'BiosConfig': {
|
||||
'@Version': '1.01',
|
||||
'SecurityConfig': {
|
||||
'SecureBootControlEnabled': False
|
||||
}
|
||||
|
Reference in New Issue
Block a user