summaryrefslogtreecommitdiff
path: root/meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0019-add-smtp-logging.patch
blob: 34a1af182761ff2d8af8104fa20a177062532815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 0bf20ac0b410e2fb3d6bfd6b1c8b160eacc8623a Mon Sep 17 00:00:00 2001
From: claiff <claiff@mail.ru>
Date: Thu, 6 Oct 2022 12:28:05 +0300
Subject: [PATCH] add-smtp-logging

---
 .../registries/openbmc_message_registry.hpp    | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index 33058a80..04a88eed 100644
--- a/redfish-core/include/registries/openbmc_message_registry.hpp
+++ b/redfish-core/include/registries/openbmc_message_registry.hpp
@@ -2170,6 +2170,24 @@ constexpr std::array registry = {
                      {"string"},
                      "None.",
                  }},
+    MessageEntry{"SMTPError",
+                 {
+                     "Special error SMTP",
+                     "SMTP manager error in method: %1, with message: \"%2\"",
+                     "Critical",
+                     2,
+                     {"string", "string"},
+                     "None.",
+                 }},
+    MessageEntry{"SMTPOk",
+                 {
+                     "Event SMTP",
+                     "SMTP manager: %1",
+                     "OK",
+                     1,
+                     {"string"},
+                     "None.",
+                 }},
     MessageEntry{"SparingRedundancyDegraded",
                  {
                      "Indicates the sparing redundancy state is degraded.",