Add storage inventory support for hsbp-manager

Added storage inventory support for hsbp manager
Recently there is a upstream code changes done for
multiple storage support in bmcweb. So Added the storage
inventory interface as
/xyz/openbmc_project/inventory/item/storage/hsbp/1
in hsbp-manager.

get: https://{bmc_ip}/redfish/v1/Systems/system/Storage

{
    "@odata.id": "/redfish/v1/Systems/system/Storage",
    "@odata.type": "#StorageCollection.StorageCollection",
    "Members": [
        {
            "@odata.id": "/redfish/v1/Systems/system/Storage/1"
        }
    ],
    "Members@odata.count": 1,
    "Name": "Storage Collection"
}

get: https://{bmc_ip}/redfish/v1/Systems/system/Storage/1

{
    "@odata.id": "/redfish/v1/Systems/system/Storage/1",
    "@odata.type": "#Storage.v1_13_0.Storage",
    "Controllers": {
        "@odata.id": "/redfish/v1/Systems/system/Storage/1/
Controllers"
    },
    "Drives": [
        {
            "@odata.id": "/redfish/v1/Systems/system/Storage/1
/Drives/Drive_1"
        },
        {
            "@odata.id": "/redfish/v1/Systems/system/Storage/1
/Drives/Drive_2"
        }
    ],
    "Drives@odata.count": 2,
    "Id": "1",
    "Name": "Storage",
    "Status": {
        "Health": "OK",
        "HealthRollup": "OK",
        "State": "Enabled"
    }
}


Redfish Validator: passed

Change-Id: I086ef93952767e8b676ab6fb1dba244ac416d032
Signed-off-by: Dileep Kumar Choppa <dileepx.kumar.choppa@intel.com>
1 file changed
tree: 609b18a20bed9a318c66333d2433d63b70ca31a3
  1. callback-manager/
  2. hsbp-manager/
  3. .gitignore
  4. CMakeLists.txt
  5. LICENSE
  6. OWNERS
  7. README.md
README.md

s2600wf-misc