summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjayaprakash Mutyala <mutyalax.jayaprakash@intel.com>2019-12-19 12:15:43 +0000
committermutyalax.jayaprakash <mutyalax.jayaprakash@intel.com>2019-12-20 19:21:53 +0000
commit7f68549fe40af716551e6de7db90bfb9fb5b8dd6 (patch)
tree2b806ebce65f5cea14ad7cceed643f3e6921edc9
parent9c6b0159a6d9f71d0bbc1301d1f605add3f91da3 (diff)
downloadbmcweb-7f68549fe40af716551e6de7db90bfb9fb5b8dd6.tar.gz
bmcweb-7f68549fe40af716551e6de7db90bfb9fb5b8dd6.zip
msg_registry:Added PowerSupplyConfigErrRecovered
Added PowerSupplyConfigurationErrorRecovered message entry in openbmc_message_registry as it is required when PSU deassert event occurred. This is continuation of below patch. https://gerrit.openbmc-project.xyz/#/c/openbmc/dbus-sensors/+/27701/ Tested: 1. Verified redfish validator passed 2. verified in Redfish, PowerSupplyConfigurationErrorRecovered message populated properly Get: https://<BMC IP>/redfish/v1/Systems/system/LogServices/ EventLog/Entries { "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry", "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/42519", "@odata.type": "#LogEntry.v1_4_0.LogEntry", "Created": "1970-01-01T11:48:39+00:00", "EntryType": "Event", "Id": "42519", "Message": "Power supply PSU2 configuration error recovered.", "MessageArgs": [ "PSU2" ], "MessageId": "OpenBMC.0.1.PowerSupplyConfigurationErrorRecovered", "Name": "System Event Log Entry", "Severity": "OK" }, Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> Change-Id: Ifef9d323241f49124df7b85f85d42041e7ecdf83
-rw-r--r--redfish-core/include/registries/openbmc_message_registry.hpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index 8fe6669..1e9fa60 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.1.0",
"OpenBMC",
};
-constexpr std::array<MessageEntry, 143> registry = {
+constexpr std::array<MessageEntry, 144> registry = {
MessageEntry{
"ADDDCCorrectable",
{
@@ -1260,6 +1260,17 @@ constexpr std::array<MessageEntry, 143> registry = {
"None.",
}},
MessageEntry{
+ "PowerSupplyConfigurationErrorRecovered",
+ {
+ "Indicates that power supply configuration error recovered "
+ "from a failure.",
+ "Power supply %1 configuration error recovered.",
+ "OK",
+ 1,
+ {"string"},
+ "None.",
+ }},
+ MessageEntry{
"PowerSupplyFanFailed",
{
"Indicates that the specified power supply fan has failed.",
OpenPOWER on IntegriCloud