diff options
author | jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> | 2019-12-19 15:15:43 +0300 |
---|---|---|
committer | mutyalax.jayaprakash <mutyalax.jayaprakash@intel.com> | 2019-12-20 22:21:53 +0300 |
commit | 7f68549fe40af716551e6de7db90bfb9fb5b8dd6 (patch) | |
tree | 2b806ebce65f5cea14ad7cceed643f3e6921edc9 /redfish-core | |
parent | 9c6b0159a6d9f71d0bbc1301d1f605add3f91da3 (diff) | |
download | bmcweb-7f68549fe40af716551e6de7db90bfb9fb5b8dd6.tar.xz |
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
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/include/registries/openbmc_message_registry.hpp | 13 |
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 8fe66690be..1e9fa60485 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.", |