From 33e1f122b740c5de679dc0350b5f41e8d975499f Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Mon, 26 Feb 2024 21:10:16 -0600 Subject: AllowedHostTransitions: look for on dbus Commit [1] introduced a new optional dbus property that OpenBMC developers can populate to define which redfish/v1/Systems/system/ResetActionInfo AllowableValues are. Look for that new property on dbus. If not found, hard code the previous values otherwise utilize the property to fill in the return value. Tested: - Put new property on dbus and confirmed Redfish API returned expected values: ``` curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Systems/system/ResetActionInfo { "@odata.id": "/redfish/v1/Systems/system/ResetActionInfo", "@odata.type": "#ActionInfo.v1_1_2.ActionInfo", "Id": "ResetActionInfo", "Name": "Reset Action Info", "Parameters": [ { "AllowableValues": [ "ForceOff", "PowerCycle", "Nmi", "On", "ForceOn", "ForceRestart", "GracefulRestart", "GracefulShutdown" ], "DataType": "String", "Name": "ResetType", "Required": true } ] } ``` - Did not run redfish validator as response was same as previous [1]: https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/68933 Change-Id: Iecece14e7ff55db98d96df71b106ecc9e3f0ac33 Signed-off-by: Andrew Geissler Signed-off-by: Gunnar Mills --- Redfish.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Redfish.md') diff --git a/Redfish.md b/Redfish.md index cdec1f90c0..93105ebfce 100644 --- a/Redfish.md +++ b/Redfish.md @@ -936,6 +936,14 @@ other. - TotalThreads - Version +### /redfish/v1/Systems/system/ResetActionInfo/ + +#### ActionInfo + +- Parameters/AllowableValues +- Parameters/DataType +- Parameters/Required + ### /redfish/v1/Systems/system/Storage/ #### StorageCollection -- cgit v1.2.3