背景
BMC本身支持单栈IPV4、单栈IPV6、IPV4&IPV6双栈,但是NPU的信息显示上并未呈现NPU网卡的IPV6信息,需要评审新增redfish标准接口以及资源协作接口属性。
关联ISSUE
整体方案
- redfish资源Processors新增NPU网卡IPv6信息
评审点
- redfish资源Processors新增NPU网卡IPv6信息:IPv6DefaultGateway、Address、PrefixLength
详细描述
评审点1:Processors资源新增OEM属性
资源URI:/redfish/v1/Systems/system_id/Processors/processor_id
资源版本:Processor.v1_17_0.Processor
属性列表:
| 属性名 | 类型 | 示例/取值约束 | readonly | 易变属性 | 实现PATCH | 操作权限 | 描述 |
|---|---|---|---|---|---|---|---|
| IPv6DefaultGateway | string |
仅NPU资源具有,未获取到的默认值为null | true |
否 |
否 |
ReadOnly |
IPv6网关 |
| IPv6Address | object |
仅NPU资源具有 | true |
否 |
否 |
ReadOnly |
IPv6地址对象 |
| Address | string |
仅NPU资源具有,未获取到的默认值为null | true |
否 |
否 |
ReadOnly |
IPv6地址 |
| PrefixLength | integar |
仅NPU资源具有,未获取到的默认值为null | true |
否 |
否 |
ReadOnly |
IPv6地址前缀长度 |
请求样例:
GET https://device_ip/redfish/v1/Systems/system_id/Processors/processor_id
请求头:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
请求消息体:无
响应样例:
{
"@odata.context": "/redfish/v1/$metadata#Processor.Processor",
"@odata.id": "/redfish/v1/Systems/1/Processors/Npu1",
"@odata.type": "#Processor.v1_17_0.Processor",
"Name": "NPU1-1",
"Id": "Npu1",
"ProcessorType": "NPU",
"ProcessorArchitecture": "ARM",
"InstructionSet": "ARM-A64",
"Oem": {
"openUBMC": {
"EthernetInterface": {
"MACAddress": "00:00:00:00:00:00",
"IPv4Address": {
"Address": null,
"SubnetMask": null,
"Gateway": null
},
"IPv6Address": {
"Address": "2001:db8:1234::100",
"PrefixLength": 64
},
"IPv6DefaultGateway": "2001:db8:1234::100",
"PacketsReceived": null,
"PacketsTransmitted": null,
"PacketsDropped": null
},
}
}
}
是否准备好AI预审
是
评审结论
- 同意新增NPU网卡IPv6信息