Add inventory added and removed to registry
Add registry entries to aid parsing logs.
Tested: Removed entity manager persistence file and
got logs like the following:
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/#1557855925",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2019-05-14T17:45:25+00:00",
"EntryType": "Event",
"Id": "1557855925",
"Message": "F1UL16RISER1 Board with serial number BQWK63400247 was installed.",
"MessageArgs": [
"F1UL16RISER1",
"Board",
"BQWK63400247"
],
"MessageId": "OpenBMC.0.1.InventoryAdded",
"Name": "System Event Log Entry",
"Severity": "OK"
}
Change-Id: Id111872121b47395335d8c9e118dc6809a1b7574
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index 319f663..970d767 100644
--- a/redfish-core/include/registries/openbmc_message_registry.hpp
+++ b/redfish-core/include/registries/openbmc_message_registry.hpp
@@ -220,6 +220,40 @@
.resolution = "None.",
}},
MessageEntry{
+ "InventoryAdded",
+ {
+ .description =
+ "Indicates that an inventory item with the specified model, "
+ "type, and serial number was installed.",
+ .message = "%1 %2 with serial number %3 was installed.",
+ .severity = "OK",
+ .numberOfArgs = 3,
+ .paramTypes =
+ {
+ "string",
+ "string",
+ "string",
+ },
+ .resolution = "None.",
+ }},
+ MessageEntry{
+ "InventoryRemoved",
+ {
+ .description =
+ "Indicates that an inventory item with the specified model, "
+ "type, and serial number was removed.",
+ .message = "%1 %2 with serial number %3 was removed.",
+ .severity = "OK",
+ .numberOfArgs = 3,
+ .paramTypes =
+ {
+ "string",
+ "string",
+ "string",
+ },
+ .resolution = "None.",
+ }},
+ MessageEntry{
"IntelUPILinkWidthReducedToHalf",
{
.description =