Commit 97b1b8d0 authored by Raptor Engineering Development Team's avatar Raptor Engineering Development Team
Browse files

Report host power state in Redfish chassis response

parent cfb1dcc0
......@@ -322,7 +322,12 @@ int redfish_v1_system_endpoint_handler(struct mg_connection *conn, void *cbdata)
redfish_system_data_list.id = "system";
redfish_system_data_list.indicator_led = "Off";
redfish_system_data_list.name = "Computer System";
if (host_power_status == HOST_POWER_STATUS_OFFLINE) {
redfish_system_data_list.power_state = "Off";
}
else {
redfish_system_data_list.power_state = "On";
}
redfish_system_data_list.status.state = "Enabled";
redfish_system_data_list.system_type = "Physical";
......@@ -457,6 +462,6 @@ int redfish_v1_system_reset_endpoint_handler(struct mg_connection *conn, void *c
mg_printf(conn, "%s", json_string_buffer);
SEND_STANDARD_FOOTER(conn);
//
return 200;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment