commit | 3fff6206a68bd50ea8750aa0d0321d43f9f06783 | [log] [tgz] |
---|---|---|
author | Sunitha Harish <sunithaharish04@gmail.com> | Mon Feb 24 03:01:57 2020 -0600 |
committer | Sunitha Harish <sunithaharish04@gmail.com> | Tue Apr 28 01:32:31 2020 -0500 |
tree | 980a810703e1c7dc144325bdc82e4b97a7a3d2c2 | |
parent | 3b6dea601ede930c4596b0160b5a8d328b92b0c4 [diff] |
Set the Hypervisor IPv4 Static IP address This commit implements the PATCH command for setting the Power hypervisor Virtual Management Interface's IPv4 static network. Tested by: 1. Configure the Static IPv4 address: PATCH -d '{"IPv4StaticAddresses": [{"Address": "<>","SubnetMask": "<>","Gateway":"<>"}]}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/<id> 2. Delete the Static IPv4 address: PATCH -d '{"IPv4StaticAddresses": [null]}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/<id> 3. GET https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/<id> Signed-off-by: Sunitha Harish <sunithaharish04@gmail.com> Change-Id: Idacbf2dc6859314185b3521dc714925b7f14d965
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.