diff options
author | Sunitha Harish <sunithaharish04@gmail.com> | 2020-02-19 17:34:59 +0300 |
---|---|---|
committer | Ratan Gupta <ratagupt@linux.vnet.ibm.com> | 2020-04-21 07:54:19 +0300 |
commit | 462023addac00b521fc2e59ae53080046438ddfa (patch) | |
tree | 3481ff0ef1c5d8c012bb193525bfe00aab2b5a01 /redfish-core/include/redfish.hpp | |
parent | a68a8045387e60771e69c53eaa1e4283eab517e4 (diff) | |
download | bmcweb-462023addac00b521fc2e59ae53080046438ddfa.tar.xz |
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 <sunithaharish04@gmail.com>
Change-Id: Ie1eb166808473137dd65df54fb4d748cfd1131d2
Diffstat (limited to 'redfish-core/include/redfish.hpp')
-rw-r--r-- | redfish-core/include/redfish.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<SensorCollection>(app)); nodes.emplace_back(std::make_unique<Sensor>(app)); + nodes.emplace_back(std::make_unique<TaskMonitor>(app)); nodes.emplace_back(std::make_unique<TaskService>(app)); nodes.emplace_back(std::make_unique<TaskCollection>(app)); @@ -178,6 +180,11 @@ class RedfishService nodes.emplace_back(std::make_unique<EventService>(app)); nodes.emplace_back(std::make_unique<EventDestinationCollection>(app)); nodes.emplace_back(std::make_unique<EventDestination>(app)); + + nodes.emplace_back( + std::make_unique<HypervisorInterfaceCollection>(app)); + nodes.emplace_back(std::make_unique<HypervisorSystem>(app)); + for (const auto& node : nodes) { node->initPrivileges(); |