summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0017-Add-msg-registry-for-subscription-related-actions.patch
blob: d0cfd1c445c6b18d1314d85821ed49679c84d02d (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
From 7282ab7756cdb8c844bef9affd8a8e894828678c Mon Sep 17 00:00:00 2001
From: Ayushi Smriti <smriti.ayushi@intel.com>
Date: Mon, 10 May 2021 12:32:30 +0530
Subject: [PATCH] Add msg registry for subscription related actions

For subscription event message log purpose, added message registry
entry for event service subscription related actions- add, update
and delete.

Tested:
 - Message registry entry appears in the log for the corresponding
   subscription action.

Signed-off-by: AppaRao Puli <apparao.puli@intel.com>
Signed-off-by: Ayushi Smriti <smriti.ayushi@intel.com>
---
 .../registries/openbmc_message_registry.hpp   | 41 ++++++++++++++++++-
 1 file changed, 40 insertions(+), 1 deletion(-)

diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
index e12a138..2f981db 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.2.0",
     "OpenBMC",
 };
-constexpr std::array<MessageEntry, 190> registry = {
+constexpr std::array<MessageEntry, 193> registry = {
     MessageEntry{
         "ADDDCCorrectable",
         {
@@ -417,6 +417,45 @@ constexpr std::array<MessageEntry, 190> registry = {
                      {},
                      "None.",
                  }},
+    MessageEntry{"EventSubscriptionAdded",
+                 {
+                     "Indicates that an Event subscription with specific "
+                     "id was added.",
+                     "Event subscription with id %1 was added.",
+                     "OK",
+                     "OK",
+                     1,
+                     {
+                         "string",
+                     },
+                     "None.",
+                 }},
+    MessageEntry{"EventSubscriptionRemoved",
+                 {
+                     "Indicates that an Event subscription with specific "
+                     "id was removed.",
+                     "Event subscription with id %1 was removed.",
+                     "OK",
+                     "OK",
+                     1,
+                     {
+                         "string",
+                     },
+                     "None.",
+                 }},
+    MessageEntry{"EventSubscriptionUpdated",
+                 {
+                     "Indicates that an Event subscription with specific "
+                     " id was updated.",
+                     "Event subscription with id %1 was updated.",
+                     "OK",
+                     "OK",
+                     1,
+                     {
+                         "string",
+                     },
+                     "None.",
+                 }},
     MessageEntry{"FanInserted",
                  {
                      "Indicates that a system fan has been inserted.",
-- 
2.17.1