commit | 476b9cc5e6d3433d140e82ca5e3981e861443a2d | [log] [tgz] |
---|---|---|
author | Tejas Patil <tejaspp@ami.com> | Fri Jun 04 17:09:14 2021 +0530 |
committer | Ed Tanous <ed@tanous.net> | Mon Aug 23 16:33:01 2021 +0000 |
tree | 67d3ffb4f5373bfaa7917df138dbf446fd7898c3 | |
parent | e8204933be90353ef672e62dc628448173279e1c [diff] |
Add support for AssetTag in Chassis This commit adds the GET support for "AssetTag" property under "/redfish/v1/Chassis/<str>/" Redfish URI. This property indicates the AssestTag of the Chassis for the inventory purposes. As Redfish Service supports for multiple Chassis instances, so each Chassis instance will have it's own AssetTag, which can be used to track each chassis for the inventory purposes. Tested: - Redfish Validator Test passed. curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/json" -X GET https://${bmc}/redfish/v1/Chassis/WFP_Baseboard { "@odata.id": "/redfish/v1/Chassis/WFP_Baseboard", "@odata.type": "#Chassis.v1_14_0.Chassis", "Actions": { "#Chassis.Reset": { "@Redfish.ActionInfo": "/redfish/v1/Chassis/WFP_Baseboard/ResetActionInfo", "target": "/redfish/v1/Chassis/WFP_Baseboard/Actions/Chassis.Reset" } }, "AssetTag": "abc", "ChassisType": "RackMount", "Id": "WFP_Baseboard", "IndicatorLED": "Off", "IndicatorLED@Redfish.AllowableValues": [ "Lit", "Blinking", "Off" ], "Links": { "ComputerSystems": [ { "@odata.id": "/redfish/v1/Systems/system" } ], "ManagedBy": [ { "@odata.id": "/redfish/v1/Managers/bmc" } ] }, "LocationIndicatorActive": false, "Manufacturer": "Intel Corporation", "Model": "S2600WFT", "Name": "WFP_Baseboard", "PCIeDevices": { "@odata.id": "/redfish/v1/Systems/system/PCIeDevices" }, "PartNumber": "..........", "Power": { "@odata.id": "/redfish/v1/Chassis/WFP_Baseboard/Power" }, "PowerState": "On", "Sensors": { "@odata.id": "/redfish/v1/Chassis/WFP_Baseboard/Sensors" }, "SerialNumber": "............", "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" }, "Thermal": { "@odata.id": "/redfish/v1/Chassis/WFP_Baseboard/Thermal" } } Signed-off-by: Tejas Patil <tejaspp@ami.com> Change-Id: I2b0808fcc29057e352581f018ef55564597c7456
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/meson_options.txt
and then compiling. For example, meson <builddir> -Dkvm=disabled ...
followed by ninja
in build directory. The option names become C++ preprocessor symbols that control which code is compiled into the program.
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C buildir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in bmcweb/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja coverage -C builddir test
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.