Add policy::Table class
This class holds the error log policy data defined by
IBM's service people. The raw data is stored in a JSON
file on the BMC, and loaded into the class on construction.
The policy data is a map of error messages (i.e. the
xyz.openbmc_project.Foo.Error.Bar strings) to a list of
policy details structures.
Each details structure has:
* a search modifier - used to find the specific details
entry for a specific error log message.
* a message - a customer facing description of the error
* an event ID - an ID defined by IBM that can be used to
locate information about the error online.
An example of an entry of the JSON data it consumes is:
{
"dtls":[
{
"CEID":"ID 1",
"mod":"mod 1",
"msg":"Error 1"
},
{
"CEID":"ID 2",
"mod":"mod 2",
"msg":"Error 2 "
}
],
"err":"xyz.openbmc_project.Error.Test1"
}
A future commit will add the ability to find an entry.
Change-Id: I9869c15799914acf9cbc9d91ff714edb6e2512ef
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 0997d31..67d142c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,7 +5,8 @@
ibm_log_manager_SOURCES = \
dbus.cpp \
main.cpp \
- manager.cpp
+ manager.cpp \
+ policy_table.cpp
ibm_log_manager_CXX_FLAGS = \
$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \