commit | c45f00821add8cd29cbd148d4b4b9f6e988665cf | [log] [tgz] |
---|---|---|
author | Yong Li <yong.b.li@linux.intel.com> | Thu Oct 10 14:19:01 2019 +0800 |
committer | Yong Li <yong.b.li@intel.com> | Fri Oct 25 00:49:01 2019 +0000 |
tree | 7e49c27091f46f714df8b26e926b7e0122ffdaf4 | |
parent | 51709ffd22973ca2212f221e80e72984627c80c1 [diff] |
Support PATCH for HostWatchDogTimer in redfish This commit adds support for SET DBUS properties "Enabled" and "ExpireAction" for WatchDogTimer in the Redfish ComputerSystems schema. FunctionEnabled values can be false/true . TimeoutAction values can be "None","PowerCycle","PowerDown","ResetSystem". Tested: Modify the watchdog properties: curl --noproxy $BMCIP -k -H "Content-Type: application/json" -X PATCH \ https://root:0penBmc@$BMCIP/redfish/v1/Systems/system -d \ '{"WatchdogTimer":{"FunctionEnabled": false,"TimeoutAction": "PowerCycle"}}' Check them: curl --noproxy $BMCIP -k -H "Content-Type: application/json" -X GET \ https://root:0penBmc@$BMCIP/redfish/v1/Systems/system ipmitool mc watchdog get Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: Ie41232a56b3d0a62be76ae27d6ded8920f7b9407
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 prime256v1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.