diff options
author | Jennifer Lee <jennifer1.lee@intel.com> | 2018-04-25 01:59:34 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-06-29 21:49:09 +0300 |
commit | 729dae72826e58134ca4e49587427703ad0286db (patch) | |
tree | c3f376786bce65a7838878dc7e14bf8077b6660e /redfish-core/include | |
parent | a4e18f2a2b1652b378bf2e182a13595e05e66881 (diff) | |
download | bmcweb-729dae72826e58134ca4e49587427703ad0286db.tar.xz |
Added UpdateService to Redfish
- Implemented SoftwareInventoryCollection
- Implemented SoftwareInventory
Currently DBus supports BMC FW version only, so only BMC is listed in
the invetory.
Change-Id: I28a151b2b1cd98573ec93234717eae5eaf95058c
Signed-off-by: Jennifer Lee <jennifer1.lee@intel.com>
Diffstat (limited to 'redfish-core/include')
-rw-r--r-- | redfish-core/include/redfish.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp index aa25a44e64..835cc5d07f 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -16,14 +16,15 @@ #pragma once #include "../lib/account_service.hpp" +#include "../lib/chassis.hpp" +#include "../lib/ethernet.hpp" #include "../lib/managers.hpp" #include "../lib/network_protocol.hpp" #include "../lib/redfish_sessions.hpp" #include "../lib/roles.hpp" #include "../lib/service_root.hpp" -#include "../lib/ethernet.hpp" #include "../lib/thermal.hpp" -#include "../lib/chassis.hpp" +#include "../lib/update_service.hpp" #include "webserver_common.hpp" namespace redfish { @@ -53,7 +54,9 @@ class RedfishService { nodes.emplace_back(std::make_unique<ManagerCollection>(app)); nodes.emplace_back(std::make_unique<ChassisCollection>(app)); nodes.emplace_back(std::make_unique<Chassis>(app)); - + nodes.emplace_back(std::make_unique<UpdateService>(app)); + nodes.emplace_back(std::make_unique<SoftwareInventoryCollection>(app)); + nodes.emplace_back(std::make_unique<SoftwareInventory>(app)); for (auto& node : nodes) { node->getSubRoutes(nodes); } |