Fix: Add Item.Board while querying the chassis
Links.Chassis section and Links.ManagerForChassis are missing
in systems/system and Managers/bmc get responses. Also missing
"PowerControl" node in /<chassisid>/power response. Some of the
platforms exposes the chassis nodes with interface
"xyz.openbmc_project.Inventory.Item.Board". So added that
interface also, while querying the data chassis nodes.
Tested:
Get on /redfish/v1/Systems/system shows Chassis links.
Get on /redfish/v1/Managers/bmc shows chassis links.
Get on //redfish/v1/Chassis/<id>/power shows "PowerControl" node.
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
Change-Id: I7ecd016faa2cdda97a9766f2ce94bdec2aa86d1b
diff --git a/redfish-core/lib/redfish_util.hpp b/redfish-core/lib/redfish_util.hpp
index 0c874e6..5701712 100644
--- a/redfish-core/lib/redfish_util.hpp
+++ b/redfish-core/lib/redfish_util.hpp
@@ -57,7 +57,8 @@
"/xyz/openbmc_project/object_mapper",
"xyz.openbmc_project.ObjectMapper", "GetSubTree",
"/xyz/openbmc_project/inventory", 0,
- std::array<const char*, 1>{
+ std::array<const char*, 2>{
+ "xyz.openbmc_project.Inventory.Item.Board",
"xyz.openbmc_project.Inventory.Item.Chassis"});
}
} // namespace redfish