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:
Dao Cong Tien
2018-07-19 11:40:25 +07:00
parent cecf662d0e
commit 06f9d7f14a
2 changed files with 6 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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
}