| commit | f99c379db62e1c2472d24fe8efe3ae2503ba14d4 | [log] [tgz] |
|---|---|---|
| author | Gunnar Mills <gmills@us.ibm.com> | Tue Apr 14 21:54:42 2020 -0500 |
| committer | Gunnar Mills <gmills@us.ibm.com> | Thu Apr 16 16:52:26 2020 +0000 |
| tree | 9f19c39a82b0fa1e5fbce969104375e47b0cdbb5 | |
| parent | c1e236a6b2b1a6855c34279fb4800d8c5a15dfc2 [diff] |
SensorCollection: Allow slash at end
Before:
curl -k https://${bmc}/redfish/v1/Chassis/chassis/Sensors/
Not Found
After both /Sensors/ and /Sensors return the SensorCollection.
This follows the pattern in other bmcweb redfish resources and
the redfish protocol.
Tested:
Ran the validator.
curl -k https://${bmc}/redfish/v1/Chassis/chassis/Sensors/
{
"@odata.id": "/redfish/v1/Chassis/chassis/Sensors",
"@odata.type": "#SensorCollection.SensorCollection",
"Description": "Collection of Sensors for this Chassis",
"Members": [
{
Change-Id: Id6ae5b62470c4155e7e17328037b6b2dbe2ab57e
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.