commit | f926b099b33f9b2ed379d53f85687b27c0f5fa79 | [log] [tgz] |
---|---|---|
author | Sunitha Harish <sunithaharish04@gmail.com> | Mon Apr 13 02:58:57 2020 -0500 |
committer | Sunitha Harish <sunithaharish04@gmail.com> | Wed Jun 24 03:44:41 2020 +0000 |
tree | 215bf472505d183f41ea5a9cf0655709aff6146a | |
parent | 99a467faa172022896f2b6432fbecab8cbca5498 [diff] |
Validation enhancement for Hypervisor EthernetInterface update. This commit returns propertyNotWritable error for Hypervisor "IPv4Addresses" parameter. Without this, if the PATCH operation includes this parameter; then bmcweb returns the error as "PropertyUnknown" which is not meaningful. Tested By: PATCH -D patch.txt -d '{"IPv4Addresses": [null]}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/<intf> { "IPv4Addresses@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_0_0.Message", "Message": "The property IPv4Addresses is a read only property and cannot be assigned a value.", "MessageArgs": [ "IPv4Addresses" ], "MessageId": "Base.1.4.0.PropertyNotWritable", "Resolution": "Remove the property from the request body and resubmit the request if the operation failed.", "Severity": "Warning" } ] } Signed-off-by: Sunitha Harish <sunithaharish04@gmail.com> Change-Id: Ia3bf142068128ab742864030b867d12e5c2697e0
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.