Add missing Entries fields for CPU and BMC LogServices
The CPU and BMC LogServices were missing their Entries
fields, so adding them back.
Tested: Checked for presence of Entries fields and passed the
Redfish Service Validator.
Change-Id: I3caa251dd8acf05d4c37c2b30bb0374500849e84
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index da4c5ab..bcdb80c 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -586,8 +586,7 @@
return;
}
- // only use journal entries that contain a REDFISH_MESSAGE_ID
- // field
+ // only use journal entries that contain a REDFISH_MESSAGE_ID field
boost::string_view messageID;
ret =
getJournalMetadata(journal.get(), "REDFISH_MESSAGE_ID", messageID);
@@ -687,6 +686,9 @@
asyncResp->res.jsonValue["Description"] = "BMC Journal Log Service";
asyncResp->res.jsonValue["Id"] = "BMC Journal";
asyncResp->res.jsonValue["OverWritePolicy"] = "WrapsWhenFull";
+ asyncResp->res.jsonValue["Entries"] = {
+ {"@odata.id",
+ "/redfish/v1/Managers/bmc/LogServices/Journal/Entries/"}};
}
};
@@ -943,6 +945,9 @@
asyncResp->res.jsonValue["Id"] = "CPU Log";
asyncResp->res.jsonValue["OverWritePolicy"] = "WrapsWhenFull";
asyncResp->res.jsonValue["MaxNumberOfRecords"] = 3;
+ asyncResp->res.jsonValue["Entries"] = {
+ {"@odata.id",
+ "/redfish/v1/Managers/bmc/LogServices/CpuLog/Entries"}};
asyncResp->res.jsonValue["Actions"] = {
{"Oem",
{{"#CpuLog.Immediate",