Add message entry for physical security event
Log the LAN link status and chassis intrusion status change.
Tested:
Unplug network cable of dedicate NIC
Check the below log message in
https://$bmcip/redfish/v1/Systems/system/LogServices/EventLog/Entries
{
"Message": "eth0(Dedicated Management NIC) LAN leash lost.",
"MessageArgs": [
"eth0(Dedicated Management NIC)",
],
"MessageId": "OpenBMC.0.1.LanLost",
}
Change-Id: I5c04f0314363de473ff92ff8bd3225c064aba547
Signed-off-by: Qiang XU <qiang.xu@linux.intel.com>
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index 0e923f0..779a0a6 100644
--- a/redfish-core/include/registries/openbmc_message_registry.hpp
+++ b/redfish-core/include/registries/openbmc_message_registry.hpp
@@ -1012,6 +1012,53 @@
},
.resolution = "None.",
}},
+ MessageEntry{"ChassisIntrusionDetected",
+ {
+ .description = "Indicates that a physical security event "
+ "of the chassis intrusion has occurred.",
+ .message = "Chassis Intrusion Detected.",
+ .severity = "Warning",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{
+ "ChassisIntrusionReset",
+ {
+ .description =
+ "Indicates that chassis intrusion status has recovered.",
+ .message = "Chassis Intrusion Reset.",
+ .severity = "OK",
+ .numberOfArgs = 0,
+ .paramTypes = {},
+ .resolution = "None.",
+ }},
+ MessageEntry{"LanLost",
+ {
+ .description = "Indicates that a physical security event "
+ "of the LAN leash has lost.",
+ .message = "%1 LAN leash lost.",
+ .severity = "Warning",
+ .numberOfArgs = 1,
+ .paramTypes =
+ {
+ "string",
+ },
+ .resolution = "None.",
+ }},
+ MessageEntry{
+ "LanRegained",
+ {
+ .description = "Indicates that LAN link status has reconnected.",
+ .message = "%1 LAN leash regained.",
+ .severity = "OK",
+ .numberOfArgs = 1,
+ .paramTypes =
+ {
+ "string",
+ },
+ .resolution = "None.",
+ }},
MessageEntry{
"PowerButtonPressed",
{