commit | c1e236a6b2b1a6855c34279fb4800d8c5a15dfc2 | [log] [tgz] |
---|---|---|
author | Gunnar Mills <gmills@us.ibm.com> | Tue Apr 14 21:36:33 2020 -0500 |
committer | Gunnar Mills <gmills@us.ibm.com> | Thu Apr 16 16:52:26 2020 +0000 |
tree | 8b8f266b12f5387f16387e889314a59cba8f82a3 | |
parent | 450a25cbaf88b640ba55435bbb5bfa8901798c5e [diff] |
System: Remove 2nd setting of "Id" Id was already set to "system". This changes the Id from the Serial number to "system". Id now matches the last segment of the URL/@odata.id. Could not find a hard rule to require the Id to match the last segment of the URL/@data.id but all Redfish mockups match this way, other bmcweb resources do as well, and redfishtool is easier to use if this is true. Tested: Validator passes. curl -k https://${bmc}/redfish/v1/Systems/system/ ... "Description": "Computer System", "Id": "system", "IndicatorLED": "Off", "Links": { "Chassis": [ { "@odata.id": "/redfish/v1/Chassis/chassis" } ], Change-Id: Ib2cc34f033accfe6ed6236d512801674153944fc Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/CMakeLists.txt
and then compiling. For example, cmake -DBMCWEB_ENABLE_KVM=NO ...
followed by make
. The option names become C++ preprocessor symbols that control which code is compiled into the program.
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.