背景
新产品需要redfish接口呈现内存位于哪个机框
关联ISSUE
整体方案
内存资源新增标准属性Links/Chassis
评审点
内存资源新增标准属性 Links/Chassis
详细描述
评审点1:内存资源新增标准属性Links/Chassis
资源URI:/redfish/v1/Systems/{system_id}/Memory/{memory_id}
资源版本:Memory.v1_23_0
操作类型:GET
属性列表:
| 一级属性 | 二级属性 | 三级属性 | 类型 | 示例/默认值/取值约束 | readonly | 易变属性 | 实现PATCH | 操作权限 | 描述 |
|---|---|---|---|---|---|---|---|---|---|
| Links | / | / | / | / | / | / | / | / | / |
| Chassis | / | object | / | / | / | / | / | 此内存归属机箱资源的访问路径 | |
| @odata.id | string | 示例:/redfish/v1/Chassis/1 | true | 否 | / | ReadOnly | 机箱资源的访问路径 |
Schema定义:
"Links": {
Properties: {
"Chassis": {
"$ref": "http://redfish.dmtf.org/schemas/v1/Chassis.json#/definitions/Chassis",
"description": "The link to the chassis that contains this memory device.",
"longDescription": "This property shall contain a link to a resource of type `Chassis` that represents the physical container associated with this memory device.",
"readonly": true,
"versionAdded": "v1_2_0"
},
}
}
评审结论
同意新增如下redfish资源属性用于支持展示内存资源的归属Chassis
资源URI:/redfish/v1/Systems/{system_id}/Memory/{memory_id}
资源版本:Memory.v1_23_0
变化类型:内存资源新增标准属性Links/Chassis
Links/Chassis:此内存归属机箱资源的访问路径
遗留问题
1、确认当前实现是否能支持各类产品
结论:每个对象都有ObjectIdentifier属性,其中就包含对象所属的ChassisId。可以根据不同产品在root.sr中配置ChassisId。