msg_registry: Add CPUMisMatch message entry
Add "CPUMisMatch" message entry for CPU mismatch events
Tested:
1. Redfish validator - passed for this new addition
2. Verified in Redfish, Memory message populated properly
Redfish URI:
GET: https://<BMC IP>/redfish/v1/Systems/system/LogServices/EventLog
/Entries
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/
Entries/1584354165",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2020-03-16T10:22:45+00:00",
"EntryType": "Event",
"Id": "1584354165",
"Message": "CPU 1 Mismatch.",
"MessageArgs": [
"1"
],
"MessageId": "OpenBMC.0.1.CPUMisMatch",
"Name": "System Event Log Entry",
"Severity": "Critical"
},
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/
Entries/1584354165_1",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2020-03-16T10:22:45+00:00",
"EntryType": "Event",
"Id": "1584354165_1",
"Message": "CPU 2 Mismatch.",
"MessageArgs": [
"2"
],
"MessageId": "OpenBMC.0.1.CPUMisMatch",
"Name": "System Event Log Entry",
"Severity": "Critical"
},
Signed-off-by: Snehalatha V <SnehalathaX.V@intel.com>
Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: I6f5bbdab6bdce20e0d6401ec0b65567bdb8a48af
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index bb50b12..8896e64 100644
--- a/redfish-core/include/registries/openbmc_message_registry.hpp
+++ b/redfish-core/include/registries/openbmc_message_registry.hpp
@@ -312,6 +312,16 @@
{"string"},
"None.",
}},
+ MessageEntry{"CPUMismatch",
+ {
+ "Indicates that the specified CPU power/current "
+ "rating is incompatible with the board.",
+ "CPU %1 Mismatch.",
+ "Critical",
+ 1,
+ {"number"},
+ "Install the supported CPU.",
+ }},
MessageEntry{"CPUThermalTrip",
{
"Indicates that the specified CPU thermal "