Fix for Redfish event when BIOS attributes changed
No Redfish event logged when set of BIOS attributes is changed.
Added "BIOSAttributesChanged" event to log in Redfish.
Tested:
1. PATCH: /redfish/v1/Systems/system/Bios/Settings
Body:
{
"data": {
"serialDebugMsgLvl": "0x2"
}}
Response: Success
2. Do BIOS reset.
3. Check for the redfish event in redfish logs.
GET: /redfish/v1/Systems/system/LogServices/EventLog/Entries
Response:
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/32635",
"@odata.type": "#LogEntry.v1_8_0.LogEntry",
"Created": "1970-01-01T09:03:55+00:00",
"EntryType": "Event",
"Id": "32635",
"Message": "Set of BIOS Attributes changed.",
"MessageArgs": [],
"MessageId": "OpenBMC.0.1.BIOSAttributesChanged",
"Name": "System Event Log Entry",
"Severity": "OK"
}
Signed-off-by: Snehalatha Venkatesh <snehalathax.v@intel.com>
Change-Id: Id88c21d894436a9c89e99237266827046cc7757a
diff --git a/src/ipmi_to_redfish_hooks.cpp b/src/ipmi_to_redfish_hooks.cpp
index 206b9e6..f4c2fa5 100644
--- a/src/ipmi_to_redfish_hooks.cpp
+++ b/src/ipmi_to_redfish_hooks.cpp
@@ -266,6 +266,9 @@
case 0x01:
messageID += ".BIOSBoot";
break;
+ case 0x09:
+ messageID += ".BIOSAttributesChanged";
+ break;
default:
return defaultMessageHook(ipmiRaw);
break;