commit | dd99e04b4d4980e4628bbe998b86180606ed405c | [log] [tgz] |
---|---|---|
author | P.K. Lee <p.k.lee@quantatw.com> | Wed Jun 17 19:43:16 2020 +0800 |
committer | P. K. Lee <p.k.lee@quantatw.com> | Tue Jun 23 06:50:44 2020 +0000 |
tree | febe74d45f2251e8d573b8cb760acdc4f2a3163a | |
parent | 9aa46454877beb1c85a17c14d97eb7595ac28861 [diff] |
Redfish: Add chassis reset Add chassis reset by using Redfish. Tested: Passed validator. Chassis reset worked. Usage: POST on /redfish/v1/Chassis/chassis/Actions/Chassis.Reset/ { "ResetType": "PowerCycle" } Change-Id: Ia8949e6695e60ee63776ac70e4f8cd85a4b186c3 Signed-off-by: P.K. Lee <p.k.lee@quantatw.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.