Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel Firmware
Zephyr Firmware
Commits
97b1b8d0
Commit
97b1b8d0
authored
3 years ago
by
Raptor Engineering Development Team
Browse files
Options
Download
Email Patches
Plain Diff
Report host power state in Redfish chassis response
parent
cfb1dcc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
kestrel/src/redfish.c
kestrel/src/redfish.c
+7
-2
No files found.
kestrel/src/redfish.c
View file @
97b1b8d0
...
...
@@ -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
;
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment