summaryrefslogtreecommitdiff
path: root/include/image_upload.hpp
diff options
context:
space:
mode:
authorAlbert Zhang <zhanghaodi@inspur.com>2021-07-05 04:38:06 +0300
committerGunnar Mills <gmills@us.ibm.com>2023-06-28 23:00:50 +0300
commit9dcfe8c1ca70f8ff260aa5613f787d5fa3e7c45d (patch)
tree1aa75e12023b5a65c457cddf354932847bd4fe77 /include/image_upload.hpp
parentfca2cbeafc22a46875314309c147a55a9d1cee87 (diff)
downloadbmcweb-9dcfe8c1ca70f8ff260aa5613f787d5fa3e7c45d.tar.xz
Add support for redfish StopBootOnFault
This commit is added get and set for StopBootOnFault Policy. The StopBootOnFault is defined in ComputerSystem(boot). It contains two values "Never" and "AnyFault". ref:https://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_15_0.json Tested: 1.Validator passes 2.doGet method to get StopBootOnFault. curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Systems/system { "@odata.id": "/redfish/v1/Systems/system", "@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem", ... "Boot": { ... "StopBootOnFault": "Never" }, ... } 3.doPatch method set the "StopBootOnFault" property to AnyFault or Never and report error when set to other values curl -k -H "X-Auth-Token: $token" -X PATCH -d '{ "Boot" :{"StopBootOnFault":"AnyFault"}}' https://${bmc}/redfish/v1/Systems/system A few seconds later, curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Systems/system { "@odata.id": "/redfish/v1/Systems/system", "@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem", ... "Boot": { ... "StopBootOnFault": "AnyFault" }, ... } Signed-off-by: Albert Zhang <zhanghaodi@inspur.com> Change-Id: Ib2307deb413081edcbdecba9f234fe18571821a7 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'include/image_upload.hpp')
0 files changed, 0 insertions, 0 deletions