Home
last modified time | relevance | path

Searched hist:"476 b9cc5" (Results 1 – 1 of 1) sorted by relevance

/openbmc/bmcweb/redfish-core/lib/
H A Dchassis.hpp476b9cc5 Fri Jun 04 06:39:14 CDT 2021 Tejas Patil <tejaspp@ami.com> 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