From 462023addac00b521fc2e59ae53080046438ddfa Mon Sep 17 00:00:00 2001 From: Sunitha Harish Date: Wed, 19 Feb 2020 08:34:59 -0600 Subject: Adding Hypervisor system and Hypervisor Interface This commit implements the GET commands for Power hypervisor Virtual Management Interface's interface collection. Tested by: 1. GET https://${bmc}/redfish/v1/Systems 2. GET https://${bmc}/redfish/v1/Systems/hypervisor 3. GET https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces 4. Successfully ran the Redfish Validator *** /redfish/v1/Systems Type (#ComputerSystemCollection.ComputerSystemCollection), GET SUCCESS (time: 0.335171) PASS *** /redfish/v1/Systems/hypervisor Type (#ComputerSystem.v1_6_0.ComputerSystem), GET SUCCESS (time: 0.341849) PASS *** /redfish/v1/Systems/hypervisor/EthernetInterfaces Type (#EthernetInterfaceCollection.EthernetInterfaceCollection), GET SUCCESS (time: 0.362111) PASS 5. Verified the hypervisor in not listed on BMC which does not implement the Hypervisor object Signed-off-by: Sunitha Harish Change-Id: Ie1eb166808473137dd65df54fb4d748cfd1131d2 --- redfish-core/include/redfish.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'redfish-core/include/redfish.hpp') diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp index 62c7ad8f92..f8524aca57 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -40,6 +40,7 @@ #ifdef BMCWEB_ENABLE_VM_NBDPROXY #include "../lib/virtual_media.hpp" #endif // BMCWEB_ENABLE_VM_NBDPROXY +#include "../lib/hypervisor_ethernet.hpp" #include "webserver_common.hpp" namespace redfish @@ -171,6 +172,7 @@ class RedfishService nodes.emplace_back(std::make_unique(app)); nodes.emplace_back(std::make_unique(app)); + nodes.emplace_back(std::make_unique(app)); nodes.emplace_back(std::make_unique(app)); nodes.emplace_back(std::make_unique(app)); @@ -178,6 +180,11 @@ class RedfishService nodes.emplace_back(std::make_unique(app)); nodes.emplace_back(std::make_unique(app)); nodes.emplace_back(std::make_unique(app)); + + nodes.emplace_back( + std::make_unique(app)); + nodes.emplace_back(std::make_unique(app)); + for (const auto& node : nodes) { node->initPrivileges(); -- cgit v1.2.3