Update status in Redfish
Create associations when failed to change the
status to Warning.
Tested:
{
"@odata.context": "/redfish/v1/$metadata#Drive.Drive",
"@odata.id": "/redfish/v1/Systems/system/Storage/1/Drive/Drive_1",
"@odata.type": "#Drive.v1_7_0.Drive",
"Status": {
"Health": "Warning",
"HealthRollup": "Warning",
"State": "Enabled"
}
}
Change-Id: I3e5f87dc1253e8f24396a924e79d5474b0e5754a
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/hsbp-manager/include/utils.hpp b/hsbp-manager/include/utils.hpp
index 0b47a54..a3b0294 100644
--- a/hsbp-manager/include/utils.hpp
+++ b/hsbp-manager/include/utils.hpp
@@ -71,6 +71,12 @@
const static constexpr char* property = "CurrentHostState";
} // namespace power
+namespace association
+{
+const static constexpr char* interface =
+ "xyz.openbmc_project.Association.Definitions";
+} // namespace association
+
namespace hsbp
{
enum class registers : uint8_t