summaryrefslogtreecommitdiff
path: root/redfish-core/include
diff options
context:
space:
mode:
authorSnehalatha Venkatesh <snehalathax.v@intel.com>2022-03-24 13:13:02 +0300
committerEd Tanous <ed@tanous.net>2022-04-08 19:21:23 +0300
commitf7113d9b6c6778a5d957896f197c7db73b776a36 (patch)
tree1bbf60dfec77731a3a9ac5d01111bc147bec68e3 /redfish-core/include
parent9739de9a62a9ae8173fff748268eecc73d559f39 (diff)
downloadbmcweb-f7113d9b6c6778a5d957896f197c7db73b776a36.tar.xz
Add BIOSAttributesChanged message entry
When BIOS attributes are changed via OOB (using Redfish PATCH operation) No Redfish event is logged. Added a Message Registry entry to inform that a set of BIOS attributes are changed via OOB. It will be logged after BIOS reset, during which attributes are re-populated with patched values. Changing the BIOS attributes via OOB is possible only through Redfish PATCH operation currently and not supported through IPMI. This event is implemented for the following review. https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/52320 Tested: 1. Redfish validator - passed for this new addition. 2. Enable "BMC Remote Setup" and Set BIOS admin password. 3. Do BIOS reset. 4. Check for the attributes in redfish uri GET: /redfish/v1/Systems/system/Bios Response: Success 5. Patch any attribute. PATCH: /redfish/v1/Systems/system/Bios/Settings Body: { "data": { "serialDebugMsgLvl": "0x2" }} Response: Success 6. Do BIOS reset. 7. Verified in Redfish, Biosattribute change message populated. 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: Id5c41a40e996b36ab63c7b0cae7fb024f71914fe
Diffstat (limited to 'redfish-core/include')
-rw-r--r--redfish-core/include/registries/openbmc_message_registry.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index 9a8c0f6a07..a47475f8b7 100644
--- a/redfish-core/include/registries/openbmc_message_registry.hpp
+++ b/redfish-core/include/registries/openbmc_message_registry.hpp
@@ -29,7 +29,7 @@ const Header header = {
"0.3.1",
"OpenBMC",
};
-constexpr std::array<MessageEntry, 189> registry = {
+constexpr std::array<MessageEntry, 190> registry = {
MessageEntry{
"ADDDCCorrectable",
{
@@ -129,6 +129,15 @@ constexpr std::array<MessageEntry, 189> registry = {
"None.",
}},
+ MessageEntry{"BIOSAttributesChanged",
+ {
+ "Indicates that a set of BIOS Attributes has changed.",
+ "Set of BIOS Attributes changed.",
+ "OK",
+ 0,
+ {},
+ "None.",
+ }},
MessageEntry{
"BIOSBoot",
{