diff options
author | Ed Tanous <ed.tanous@intel.com> | 2018-10-12 23:45:21 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-10-16 20:18:55 +0300 |
commit | aef72909b4506c53f7e244a58439919438fa036e (patch) | |
tree | 1293b4e69f3afb1a8f3ad2a332a2cff13b7d984c /redfish-core/lib/chassis.hpp | |
parent | 04a258f40c26565b4042a32b5c9b5f2414dae0df (diff) | |
download | bmcweb-aef72909b4506c53f7e244a58439919438fa036e.tar.xz |
Implement PowerState in the chassis schema
Because the bmc is always "On" simply hardcode the value to ON. This is
done because some compliance profiles require it.
Change-Id: I8833355ca2a12d3606d10e7f653fca59ae8cf56a
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp index ae52d28aa6..fa10d5c6ec 100644 --- a/redfish-core/lib/chassis.hpp +++ b/redfish-core/lib/chassis.hpp @@ -126,6 +126,7 @@ class Chassis : public Node Node::json["@odata.context"] = "/redfish/v1/$metadata#Chassis.Chassis"; Node::json["Name"] = "Chassis Collection"; Node::json["ChassisType"] = "RackMount"; + Node::json["PowerState"] = "On"; entityPrivileges = { {boost::beast::http::verb::get, {{"Login"}}}, |