summaryrefslogtreecommitdiffstats
path: root/redfish-core/include
diff options
context:
space:
mode:
authorRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2019-09-30 11:52:08 +0530
committerRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2019-10-29 01:00:48 +0000
commit53d9a6668f7d20c46aea33d5163a143ccf35e643 (patch)
tree6737b4167846c838c78329e33e132574a8b54c02 /redfish-core/include
parent9e27a22edc4434ec577c2eb4034edc6874088413 (diff)
downloadbmcweb-53d9a6668f7d20c46aea33d5163a143ccf35e643.tar.gz
bmcweb-53d9a6668f7d20c46aea33d5163a143ccf35e643.zip
bmcweb: Message entry for Manufacturing mode
Message entry added for manufacturing mode entry and exit, which is part of special mode property as defined in xyz/openbmc_project/Control/Security/SpecialMode.interface.yaml. These message entries are used to indicate whenever SpecialMode state of the BMC is updated from normal value and manufacturing mode and vice versa Tested: 1. Redfish validator - passed for this new addition 2. Log will be as below { "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry", "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/317", "@odata.type": "#LogEntry.v1_4_0.LogEntry", "Created": "1970-01-01T00:05:17+00:00", "EntryType": "Event", "Id": "317", "Message": "Entered Manufacturing Mode.", "MessageArgs": [], "MessageId": "OpenBMC.0.1.ManufacturingModeEntered", "Name": "System Event Log Entry", "Severity": "Critical" }, { "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry", "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/899", "@odata.type": "#LogEntry.v1_4_0.LogEntry", "Created": "1970-01-01T00:14:59+00:00", "EntryType": "Event", "Id": "899", "Message": "Exited Manufacturing Mode.", "MessageArgs": [], "MessageId": "OpenBMC.0.1.ManufacturingModeExited", "Name": "System Event Log Entry", "Severity": "OK" } Change-Id: I182eeedb6860a3abcd4054caa431150ed073fbad Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'redfish-core/include')
-rw-r--r--redfish-core/include/registries/openbmc_message_registry.hpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index 7aae53f..a634d69 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",
};
-const std::array<MessageEntry, 114> registry = {
+const std::array<MessageEntry, 115> registry = {
MessageEntry{
"ADDDCCorrectable",
{
@@ -357,10 +357,20 @@ const std::array<MessageEntry, 114> registry = {
}},
MessageEntry{"ManufacturingModeEntered",
{
- "Indicates that Factory, Manufacturing, or "
- "Test mode has been entered.",
+ "Indicates that the BMC entered Factory, "
+ "or Manufacturing mode.",
"Entered Manufacturing Mode.",
- "Warning",
+ "Critical",
+ 0,
+ {},
+ "None.",
+ }},
+ MessageEntry{"ManufacturingModeExited",
+ {
+ "Indicates that the BMC exited Factory, "
+ "or Manufacturing mode.",
+ "Exited Manufacturing Mode.",
+ "OK",
0,
{},
"None.",
OpenPOWER on IntegriCloud