diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-08-20 23:57:40 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-09-02 16:31:59 +0300 |
commit | f97ddba7015a553f13639233f7e5d3fb0152d0b2 (patch) | |
tree | b3b610b63a35c9b88638b7544f510d30e7af06af /redfish-core/lib/bios.hpp | |
parent | f92af38923c3651d5def0cc60abd5ed2f802fbe7 (diff) | |
download | bmcweb-f97ddba7015a553f13639233f7e5d3fb0152d0b2.tar.xz |
Add "Links""SoftwareImages"
SoftwareImages was added in Manager in 1_6_0 and Bios in 1_1_0.
Use the existing getActiveFwVersion function but rename to
populateFirmwareInformation. Changed the mapper call from a GetObject to a
GetSubTree. Added some debug to the function.
Tested: Validator passes.
curl -k https://$bmc/redfish/v1/Managers/bmc
....
"Links": {
"ActiveSoftwareImage": {
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/e4e1c69d"
},
"ManagerForChassis": [
....
"@odata.id": "/redfish/v1/Chassis/chassis"
},
"SoftwareImages": [
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/730944ed"
},
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/e4e1c69d"
}
],
"SoftwareImages@odata.count": 2
},
...
Change-Id: I20798852a2f62575854820bff36175dda38c7dbc
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/bios.hpp')
-rw-r--r-- | redfish-core/lib/bios.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/redfish-core/lib/bios.hpp b/redfish-core/lib/bios.hpp index 8acf29be3d..2c3107723b 100644 --- a/redfish-core/lib/bios.hpp +++ b/redfish-core/lib/bios.hpp @@ -32,8 +32,9 @@ class BiosService : public Node {"target", "/redfish/v1/Systems/system/Bios/Actions/Bios.ResetBios"}}; - // Get the ActiveSoftwareImage - fw_util::getActiveFwVersion(asyncResp, fw_util::biosPurpose, "", true); + // Get the ActiveSoftwareImage and SoftwareImages + fw_util::populateFirmwareInformation(asyncResp, fw_util::biosPurpose, + "", true); } }; /** |