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
This commit is contained in:
Dao Cong Tien 2018-07-19 11:40:25 +07:00
parent a6c68f803b
commit ea8d111201
2 changed files with 6 additions and 0 deletions

View File

@ -828,8 +828,10 @@ def set_secure_boot_mode(irmc_info, enable):
bios_config_data = {
'Server': {
'@Version': '1.01',
'SystemConfig': {
'BiosConfig': {
'@Version': '1.01',
'SecurityConfig': {
'SecureBootControlEnabled': enable
}

View File

@ -1119,8 +1119,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
}
@ -1136,8 +1138,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
}