diff options
author | Andrew Geissler <geissonator@yahoo.com> | 2022-01-05 18:44:13 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2022-01-07 18:06:07 +0300 |
commit | 9ec65efb0614ebc29aa9a666d6fc478b822349f8 (patch) | |
tree | 33aae610c4427de5e9b626e4e5a12d438eb97a84 | |
parent | e1cc482880d7b47dcf19609cedba7df80368ae3c (diff) | |
download | bmcweb-9ec65efb0614ebc29aa9a666d6fc478b822349f8.tar.xz |
boot-progress: add support for SetupEntered
The following phosphor-dbus-interfaces commit introduced a new
BootProgress value:
https://github.com/openbmc/phosphor-dbus-interfaces/commit/d01d1f84191894ad605a9ba5b546280bcfc64f7d
Add support for this to the Redfish API provided by bmcweb.
Tested:
- Manually set BootProgress D-Bus property to SystemSetup and verify
busctl set-property xyz.openbmc_project.State.Host
/xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Boot.Progress
BootProgress s
xyz.openbmc_project.State.Boot.Progress.ProgressStages.SystemSetup
curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Systems/system
"BootProgress": {
"LastState": "SetupEntered"
},
- Verified validator passed when LastState was "SetupEntered"
Change-Id: Ie966766b88d2923bc0d10d89370713c7b17df14b
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
-rw-r--r-- | redfish-core/lib/systems.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp index a21b6a0f4a..abe8b02e4b 100644 --- a/redfish-core/lib/systems.hpp +++ b/redfish-core/lib/systems.hpp @@ -803,6 +803,12 @@ inline void getBootProgress(const std::shared_ptr<bmcweb::AsyncResp>& aResp) } else if ( bootProgressStr == + "xyz.openbmc_project.State.Boot.Progress.ProgressStages.SystemSetup") + { + rfBpLastState = "SetupEntered"; + } + else if ( + bootProgressStr == "xyz.openbmc_project.State.Boot.Progress.ProgressStages.SystemInitComplete") { rfBpLastState = "SystemHardwareInitializationComplete"; |