summaryrefslogtreecommitdiffstats
path: root/redfish-core/include
diff options
context:
space:
mode:
authorAnthony Wilson <wilsonan@us.ibm.com>2019-06-11 10:44:47 -0500
committerEd Tanous <ed.tanous@intel.com>2019-09-24 17:18:55 +0000
commit95a3ecada41219555c5efe4080d6589dc2aaa411 (patch)
treebbe4e6593ce14d8f20179d4ae783d3e7ea539a04 /redfish-core/include
parentcecb4cb6f0423a86645b936b54b65707d1513f11 (diff)
downloadbmcweb-95a3ecada41219555c5efe4080d6589dc2aaa411.tar.gz
bmcweb-95a3ecada41219555c5efe4080d6589dc2aaa411.zip
bmcweb: Implement SensorCollection
Add collection of all power and current sensors. Testing: Verified SensorCollection and Sensor output on a Witherspoon system. Verified no errors from RedfishServiceValidator. Change-Id: Icfdc14d738bf037d5d599a3c6fc0be5ea0919929 Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
Diffstat (limited to 'redfish-core/include')
-rw-r--r--redfish-core/include/redfish.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp
index ec6d0d7..2ca3dc7 100644
--- a/redfish-core/include/redfish.hpp
+++ b/redfish-core/include/redfish.hpp
@@ -28,6 +28,7 @@
#include "../lib/power.hpp"
#include "../lib/redfish_sessions.hpp"
#include "../lib/roles.hpp"
+#include "../lib/sensors.hpp"
#include "../lib/service_root.hpp"
#include "../lib/systems.hpp"
#include "../lib/thermal.hpp"
@@ -140,6 +141,9 @@ class RedfishService
nodes.emplace_back(std::make_unique<TrustStoreCertificate>(app));
nodes.emplace_back(std::make_unique<SystemPCIeFunction>(app));
nodes.emplace_back(std::make_unique<SystemPCIeDevice>(app));
+
+ nodes.emplace_back(std::make_unique<SensorCollection>(app));
+ nodes.emplace_back(std::make_unique<Sensor>(app));
for (const auto& node : nodes)
{
node->initPrivileges();
OpenPOWER on IntegriCloud