【待评审】支持PCIeDevices资源提供SKU属性

背景

为标识PCIe设备的库存单元编号,需在PCIeDevices资源下新增SKU属性,从GPU BoardPartNumber中按四段格式提取第三段作为SKU值。

关联ISSUE

支持PCIeDevice资源的SKU属性

评审点

1、在/redfish/v1/Chassis/{ChassisId}/PCIeDevices/{PCIeDeviceId}下新增属性SKU,用于标识PCIe设备的库存单元编号

详细描述

评审点1:在/redfish/v1/Chassis/{ChassisId}/PCIeDevices/{PCIeDeviceId}下新增属性SKU,用于标识PCIe设备的库存单元编号

资源URI:/redfish/v1/Chassis/{ChassisId}/PCIeDevices/{PCIeDeviceId}

资源版本:PCIeDevice.v1_12_0

操作权限:ReadOnly

响应参数:

属性名 类型 示例/取值约束 readonly 易变属性 实现patch 操作权限 描述
SKU string,null 仅FunctionClass为3(GPU)时返回;从BoardPartNumber中提取第三段(格式:seg1-seg2-seg3-seg4),BoardPartNumber为空或不匹配四段格式时返回null ReadOnly PCIe设备的库存单元编号,通过Chassis/PCIeDevices/get_pcie_sku.lua脚本计算

注:SKU值数据来源为bmc.kepler.Systems.Processor.GPU的BoardPartNumber属性,仅当PCIe设备FunctionClass为3(GPU)时返回,其他类型PCIe设备返回null。

Schema定义:

"SKU": {
    "description": "The SKU for this PCIe device.",
    "longDescription": "This property shall contain the stock-keeping unit number for this PCIe device.",
    "readonly": true,
    "type": [
        "string",
        "null"
    ]
}

评审结论