Add support for Quiesced state
OpenBMC has a Quiesced state, Redfish does as well.
Set Redfish "Status""Sate" to Quiesced and "PowerState" to On,
if the D-Bus HoseState is Quiesced.
Tested: Validator passed on a Witherspoon system in this Quiesced
state.
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Quiesced"
},
Change-Id: I53299d51aa0ee065bb5794bab32f69b2a0f8acb2
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index a6928ca..1fc4b4f 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -616,6 +616,12 @@
aResp->res.jsonValue["Status"]["State"] = "Enabled";
}
else if (*s == "xyz.openbmc_project.State.Host.HostState."
+ "Quiesced")
+ {
+ aResp->res.jsonValue["PowerState"] = "On";
+ aResp->res.jsonValue["Status"]["State"] = "Quiesced";
+ }
+ else if (*s == "xyz.openbmc_project.State.Host.HostState."
"DiagnosticMode")
{
aResp->res.jsonValue["PowerState"] = "On";