commit | d3630cb8743eb1875705a714adac7fbab9568562 | [log] [tgz] |
---|---|---|
author | Ratan Gupta <ratagupt@linux.vnet.ibm.com> | Sat Dec 14 11:21:35 2019 +0530 |
committer | Sunitha Harish <sunithaharish04@gmail.com> | Thu Apr 09 00:29:30 2020 -0500 |
tree | 2f07e0b86c5988a0df6ade79026b605b84ecc50d | |
parent | 1c7b07c78e51e25c55327f450e19802732583361 [diff] |
Implement config file collection This commit list the config files and implements the action to delete all the config files TestedBy: List config files: curl -k -H "X-Auth-Token: $bmc_tokens" -X GET https://<ip>:443/ibm/v1/Host/ConfigFiles Delete all the config files: curl -k -H "X-Auth-Token: $bmc_tokens" -X POST https://<ip>:443/ibm/v1/Host/ConfigFiles/Actions/FileCollection.DeleteAll Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com> Change-Id: I1a32906709ba32c8bd5328d8eb983705f8a3a6cd
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.