diff options
author | Andrew Geissler <geissonator@yahoo.com> | 2024-02-27 06:10:16 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-03-04 21:20:07 +0300 |
commit | 33e1f122b740c5de679dc0350b5f41e8d975499f (patch) | |
tree | a47a7d601147363a0c72b5b70e378df1d49eb873 /http/complete_response_fields.hpp | |
parent | 12878e7374d1bbe85e14e0cb82b70fcc2c8cf6ff (diff) | |
download | bmcweb-33e1f122b740c5de679dc0350b5f41e8d975499f.tar.xz |
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 <geissonator@yahoo.com>
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'http/complete_response_fields.hpp')
0 files changed, 0 insertions, 0 deletions