commit | 5af690f5a027159e2fd92bbe78d5e1cf98146bf6 | [log] [tgz] |
---|---|---|
author | Abhishek Patel <Abhishek.Patel@ibm.com> | Tue May 25 09:53:54 2021 -0500 |
committer | Gunnar Mills <gmills@us.ibm.com> | Fri May 28 16:40:44 2021 +0000 |
tree | 41e6f02f257bc49b433b2ed2731e8e4aab0a45e9 | |
parent | b623d9c1b6605978eb6158619bb43c79a9f543fd [diff] |
Adjust parameter name of FirmwareInventoryId redfish URL "/redfish/v1/UpdateService/FirmwareInventory/ {SoftwareInventoryId}" had parameter called "Members@odata.count". This parameter name is not appropriate because it retrieves data, count of Related Item, from "RelatedItem" parameter, so its name has to be "RelatedItem@odata.count". Implement: Updated name of JSON parameter, also updated code variable name. Tested: Validator passes - Keep primary data and other parameter deleted from JSON data Old JSON data: { "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/ {SoftwareInventoryId}, "@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory", "Description": "BMC image", "Members@odata.count": 1, "Name": "Software Inventory", "RelatedItem": [{ "@odata.id": "/redfish/v1/Managers/bmc" }], } new JSON data: { "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/ {SoftwareInventoryId}, "@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory", "Description": "BMC image", "RelatedItem@odata.count": 1, "Name": "Software Inventory", "RelatedItem": [{ "@odata.id": "/redfish/v1/Managers/bmc" }], } Signed-off-by: Abhishek Patel <Abhishek.Patel@ibm.com> Change-Id: I12c123fc78872890efe2949d2a3a55f882cdd09b
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/meson_options.txt
and then compiling. For example, meson <builddir> -Dkvm=disabled ...
followed by ninja
in build directory. The option names become C++ preprocessor symbols that control which code is compiled into the program.
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C buildir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in bmcweb/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja coverage -C builddir test
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.