commit | 3d0ecaca735d2f7efa660d6319765274dc8974e6 | [log] [tgz] |
---|---|---|
author | Sunitha Harish <sunithaharish04@gmail.com> | Mon Mar 23 03:47:40 2020 -0500 |
committer | Sunitha Harish <sunithaharish04@gmail.com> | Tue Aug 04 03:32:37 2020 +0000 |
tree | 514c21bd7aebc928b338ba66acdccc85eb1b6414 | |
parent | 9edd866c3ad31dfff3b3ad4a14c5fa2c4669c00e [diff] |
Redfish: PATCH command for Hypervisor DHCP network This commit adds support to set the DHCP configuration on the Hypervisor's Ethernet Interface Tested By: Configure the DHCPEnabled parameter and check the value is set. 1. curl -k -H "X-Auth-Token: $bmc_token" -X PATCH -d '{"DHCPv4": {"DHCPEnabled": true}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0 2. curl -k -H "X-Auth-Token: $bmc_token" -X GET https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0 Signed-off-by: Sunitha Harish <sunithaharish04@gmail.com> Change-Id: Ie1ac5659ef6af0f29cd91bda96574424a86fd095
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.