Cherry-pick UpdateService Support for MultipartHttpPushUri
Upstream commit info here:
https://github.com/openbmc/bmcweb/commit/0ed80c8ce93a38eca6951ffad5c3143a3a720053
Since a service support the MultipartHttpPushUri property within the
UpdateService resource, so add a new MultipartHttpPushUri property,
This property shall contain a URI used to perform a Redfish
Specification-defined Multipart HTTP or HTTPS POST of a software image
for the purpose of installing software contained within the image, and
use the requirements of a multipart/form-data to request body for HTTP
push software update.
Tested:
curl -k -H "X-Auth-Token: $token" -H "Content-Type:
multipart/form-data"
-F
'UpdateParameters={"Targets":["/redfish/v1/Managers/bmc"],
"@Redfish.OperationApplyTime":"Immediate"};type=application/json'
-F
'UpdateFile=@obmc-phosphor-image.static.mtd.tar;type=application/
octet-stream'
https://${bmc}/redfish/v1/UpdateService/update
{
"@odata.id": "/redfish/v1/TaskService/Tasks/0",
"@odata.type": "#Task.v1_4_3.Task",
"Id": "0",
"TaskState": "Running",
"TaskStatus": "OK"
}
Passed the validator:
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ie1ea0594337efdb073270aba6918389c4381a2b3
(cherry picked from commit 0ed80c8ce93a38eca6951ffad5c3143a3a720053)
Google-Bug-Id: 290981635
Change-Id: Idadc06f6ba485523453e67d23a93d65e779ffc7a
Signed-off-by: Edward Lee <edwarddl@google.com>
2 files changed