diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2019-02-04 14:06:58 +0530 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2019-02-04 14:21:37 +0530 |
commit | e19540e6d8e96e205978712a698e83f676553360 (patch) | |
tree | e16ef41c24770c7771268e96130b81f7258348da /scripts/inventorysensor.mako.cpp | |
parent | 73906b9c9123218a7f8fc86db34957b965c53870 (diff) | |
download | phosphor-host-ipmid-e19540e6d8e96e205978712a698e83f676553360.tar.gz phosphor-host-ipmid-e19540e6d8e96e205978712a698e83f676553360.zip |
Revert "eSEL: Remove unused code related to logging eSEL"
This reverts commit 54fad6de0541c2f98e9b511f1d30bbcbcd743db6.
This commit is reverted because the mapping of D-Bus object path to
sensor information is still needed. The mapping is needed to serve
the SEL commands which translate D-Bus logging objects to SEL entries.
Change-Id: I2505299671db1f0bd7f116ef0e2ca4a0273eead8
Diffstat (limited to 'scripts/inventorysensor.mako.cpp')
-rw-r--r-- | scripts/inventorysensor.mako.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/inventorysensor.mako.cpp b/scripts/inventorysensor.mako.cpp new file mode 100644 index 0000000..000f758 --- /dev/null +++ b/scripts/inventorysensor.mako.cpp @@ -0,0 +1,27 @@ +## This file is a template. The comment below is emitted +## into the rendered file; feel free to edit this file. + +// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!! + +#include "types.hpp" +using namespace ipmi::sensor; + +extern const InvObjectIDMap invSensors = { +% for key in sensorDict.iterkeys(): + % if key: +{"${key}", + { +<% + objectPath = sensorDict[key] + sensorID = objectPath["sensorID"] + sensorType = objectPath["sensorType"] + eventReadingType = objectPath["eventReadingType"] + offset = objectPath["offset"] +%> + ${sensorID},${sensorType},${eventReadingType},${offset} + } +}, + % endif +% endfor +}; + |