commit | 1d44c8083853494fc7a3334e39d74a89de64ea09 | [log] [tgz] |
---|---|---|
author | Sunitha Harish <sunithaharish04@gmail.com> | Mon Feb 24 02:40:24 2020 -0600 |
committer | Sunitha Harish <sunithaharish04@gmail.com> | Tue Apr 21 00:02:41 2020 -0500 |
tree | b8d8a383acd4dd645953e39af809ea08ee017480 | |
parent | 462023addac00b521fc2e59ae53080046438ddfa [diff] |
Redfish Interface Implementation for Hypervisor-IPv4 Static IP This commit implements the GET command for Power hypervisor Virtual Management Interface's IPv4 static network. Tested by: 1. GET https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/intf0 2. GET https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/intf1 3. Successfully ran the Redfish Validator *** /redfish/v1/Systems/hypervisor/EthernetInterfaces/intf0 Type (#EthernetInterface.v1_5_1.EthernetInterface), GET SUCCESS (time: 0.400974) PASS *** /redfish/v1/Systems/hypervisor/EthernetInterfaces/intf1 Type (#EthernetInterface.v1_5_1.EthernetInterface), GET SUCCESS (time: 0.366143) PASS Signed-off-by: Sunitha Harish <sunithaharish04@gmail.com> Change-Id: Ie0f6996a01f9772e91dcf6d5045a20f3a257f67c
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.