diff options
| author | Nikhil Potade <nikhil.potade@linux.intel.com> | 2019-08-23 16:35:26 -0700 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2019-09-30 21:06:48 +0000 |
| commit | e56c7b7092298c609831a65bcc8c21e62d422ba7 (patch) | |
| tree | b7d67ab493242e8330ad3c334b955253bcb34f2d /redfish-core/include | |
| parent | 3929aca1036033994610f6b3424aad124bf41d51 (diff) | |
| download | bmcweb-e56c7b7092298c609831a65bcc8c21e62d422ba7.tar.gz bmcweb-e56c7b7092298c609831a65bcc8c21e62d422ba7.zip | |
Add Storage Schema for NVMe on Redfish
This provides an implementation for the Get methods for the Storage
schemas using following classes :
- StorageCollection
- Storage
Tested:
- Ran Redfish Service Validator to verify no issues are reported.
- Tested that the NVMe drives in the system show up and proper fields
are populated with appropriate data.
- Tested with no drives present. Made sure the Storage interface shows
no drives and Drive interface returns error message.
Signed-off-by: Nikhil Potade <nikhil.potade@linux.intel.com>
Change-Id: I9fa9f4cd69fe07cde15604c5405a6987774065fd
Diffstat (limited to 'redfish-core/include')
| -rw-r--r-- | redfish-core/include/redfish.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp index 2ca3dc7..53c9595 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -30,6 +30,7 @@ #include "../lib/roles.hpp" #include "../lib/sensors.hpp" #include "../lib/service_root.hpp" +#include "../lib/storage.hpp" #include "../lib/systems.hpp" #include "../lib/thermal.hpp" #include "../lib/update_service.hpp" @@ -71,6 +72,9 @@ class RedfishService 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<StorageCollection>(app)); + nodes.emplace_back(std::make_unique<Storage>(app)); + nodes.emplace_back(std::make_unique<Drive>(app)); #ifdef BMCWEB_INSECURE_ENABLE_REDFISH_FW_TFTP_UPDATE nodes.emplace_back( std::make_unique<UpdateServiceActionsSimpleUpdate>(app)); |

