diff options
author | Lewanczyk, Dawid <dawid.lewanczyk@intel.com> | 2018-03-22 23:33:49 +0100 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-05-18 19:05:48 +0000 |
commit | 08777fb0eca7e0c3f52aeb829a9b8f4fa0bbdb73 (patch) | |
tree | ba0d4e882bbcfb6dc1c7f5daf008267afb48f239 /redfish-core/lib/chassis.hpp | |
parent | 7d95f5f6db1df37fe6438aa0e87479275c82807a (diff) | |
download | bmcweb-08777fb0eca7e0c3f52aeb829a9b8f4fa0bbdb73.tar.gz bmcweb-08777fb0eca7e0c3f52aeb829a9b8f4fa0bbdb73.zip |
Introduce Thermal schema
Changes:
-redfish.hpp add thermal node installation
-thermal.hpp add thermal schema for chassis
-sensor.hpp add support for retrieving:
temperature, and fan
Verification:
-web server: no regression
-RSV: pass
-build on x86 and ASPEED
This patchset builds on Dawids original.
Change-Id: Ia8e40edff3c722fa02a161248bcdf602e36e3e62
Signed-off-by: Lewanczyk, Dawid <dawid.lewanczyk@intel.com>
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'redfish-core/lib/chassis.hpp')
-rw-r--r-- | redfish-core/lib/chassis.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp index 02a614b..9f3fb38 100644 --- a/redfish-core/lib/chassis.hpp +++ b/redfish-core/lib/chassis.hpp @@ -248,6 +248,8 @@ class Chassis : public Node { // Create JSON copy based on Node::json, this is to avoid possible // race condition nlohmann::json json_response(Node::json); + json_response["Thermal"] = { + {"@odata.id", "/redfish/v1/Chassis/" + chassis_id + "/Thermal"}}; // If success... if (success) { // prepare all the schema required fields. |