【已评审】新增网卡相关redfish接口资源

背景

1、支持Port相关资源新增LinkConfiguration/AutoSpeedNegotiationCapable、LinkConfiguration/AutoSpeedNegotiationEnabled、LinkState、PortId、 PortProtocol属性
2、支持NetworkDeviceFunction相关资源适配新增DeviceEnabled、PCIeFunction、EthernetInterfaces、 Status属性
3、支持NetworkAdapter相关资源新增NetworkDeviceFunctionCount属性
4、支持EthernetInterface相关资源新增InterfaceEnabled、Status、NetworkDeviceFunctions属性

关联ISSUE

整体方案

1、支持Port相关资源新增LinkConfiguration/AutoSpeedNegotiationCapable、LinkConfiguration/AutoSpeedNegotiationEnabled、LinkState、PortId、 PortProtocol属性
2、支持NetworkDeviceFunction相关资源适配新增DeviceEnabled、PCIeFunction、EthernetInterfaces、 Status属性
3、支持NetworkAdapter相关资源新增NetworkDeviceFunctionCount属性
4、支持EthernetInterface相关资源新增InterfaceEnabled、Status、NetworkDeviceFunctions属性

评审点

1、支持Port相关资源新增LinkConfiguration/AutoSpeedNegotiationCapable、LinkConfiguration/AutoSpeedNegotiationEnabled、LinkState、PortId、 PortProtocol属性
2、支持NetworkDeviceFunction相关资源适配新增DeviceEnabled、PCIeFunction、EthernetInterfaces、 Status属性
3、支持NetworkAdapter相关资源新增NetworkDeviceFunctionCount属性
4、支持EthernetInterface相关资源新增InterfaceEnabled、Status、NetworkDeviceFunctions属性

详细描述

评审点1:

资源URL:/redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/Ports/{PortId}
资源版本:Port.v1_17_0.json

属性名 类型 示例/取值约束 readonly 易变属性 实现PATCH 操作权限 描述
LinkConfiguration/AutoSpeedNegotiationCapable [boolean,null] - true Read:readonly 网口是否具备自协商能力
LinkConfiguration/AutoSpeedNegotiationEnabled [boolean,null] - false Read:readonly 网口自协商使能
LinkState [string] 枚举值:[Enabled,Diasbled] fasle Read:readonly 接口所需的链路状态
PortId [string,null] - true Read:readonly 网口ID
PortProtocol [string,null] 枚举值,详情参考http://redfish.dmtf.org/schemas/v1/Protocol.json#/definitions/Protocol true Read:readonly 网口发送的协议

评审点2:

资源URL:/redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}
资源版本:NetworkDeviceFunction.v1_11_0.json

属性名 类型 示例/取值约束 readonly 易变属性 实现PATCH 操作权限 描述
DeviceEnabled [boolean,null] - false read:readonly 网口设备功能是否启用
Status/State [string] - true Read:readonly 接口状态
Status/Health [string,null] - true Read:readonly 网口健康状态
Ethernet/EthernetInterfaces [object,null] - true Read:readonly 指向以太网接口功能
Links/PCIeFunction [object,null] - true Read:readonly 指向PCIeFunction功能

评审点3:

资源URL:/redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}
资源版本:NetworkAdapter.v1_12_1.json

属性名 类型 示例/取值约束 readonly 易变属性 实现PATCH 操作权限 描述
NetworkDeviceFunctionCount [integer,null] - true Read:readonly 网卡可用的最大物理功能数量

评审点4:

资源URL:/redfish/v1/Systems/{systemid}/EthernetInterfaces/{ethernetinterfaceid}
资源版本:EthernetInterface.v1_12_0.json

属性名 类型 示例/取值约束 readonly 易变属性 实现PATCH 操作权限 描述
InterfaceEnabled [boolean,null] - false Read:readonly 网口的使能状态
Status/state [string,null] - true Read:readonly 网口的状态
Status/Health [string,null] - true Read:readonly 网口的健康状态
Links/NetworkDeviceFunctions [array,null] - true Read:readonly 以太网接口的网络设备功能的链接

是否准备好AI预审

评审结论

  1. 同意redfish标准接口/redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/Ports/{PortId}下新增属性LinkConfiguration/AutoSpeedNegotiationCapableLinkConfiguration/AutoSpeedNegotiationEnabledLinkStatePortIdPortProtocol,详细信息见评审点1;
  2. 同意redfish标准接口/redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}下新增属性DeviceEnabledStatus/StateStatus/HealthEthernetInterfacesPCIeFunction ,详细信息见评审点2;
  3. 同意redfish标准接口/redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}下新增属性NetworkDeviceFunctionCount,详细信息见评审点3;
  4. 同意redfish标准接口/redfish/v1/Systems/{systemid}/EthernetInterfaces/{ethernetinterfaceid}下新增属性InterfaceEnabledStatus/stateStatus/HealthNetworkDeviceFunctions,详细信息见评审点4。

预审答案内容由AI生成,仅供参考:

帖子评审结论:【待评审】新增网卡相关redfish接口资源

帖子相关性:与 Redfish 相关(帖子内容包含 ‘redfish’ 关键字)

  • 总评审点数:4
  • Redfish 相关评审点:4
  • 非 Redfish 评审点:0

总体结果:通过(4/4 个评审点通过)

评审点 1:

结果:通过

  • URI 示例生成:通过
  • Schema 验证:跳过(schema 定义文件缺失或仅含 JsonSchemaFile 指针)
    • Schema 来源:DMTF ✓,OEM ✗(实际参与校验:DMTF)
    • 入口 schema 文件:dmtf/Port.v1_17_0.json(DMTF 官方 schema(SchemaFiles/dmtf))
    • Schema 依据:静态校验直接依据:DMTF 官方 schema(SchemaFiles/dmtf)(dmtf/Port.v1_17_0.json)
  • 规则合规性检查:通过(18 项检查全部通过)

评审点 2:

结果:通过

  • URI 示例生成:通过
  • Schema 验证:通过(6 项通过,2 项警告)
    • Schema 来源:DMTF ✓,OEM ✗(实际参与校验:DMTF)
    • 入口 schema 文件:dmtf/NetworkDeviceFunction.v1_11_0.json(DMTF 官方 schema(SchemaFiles/dmtf))
    • Schema 依据:静态校验直接依据:DMTF 官方 schema(SchemaFiles/dmtf)(dmtf/NetworkDeviceFunction.v1_11_0.json)
  • 规则合规性检查:通过(18 项检查全部通过)

评审点 3:

结果:通过

  • URI 示例生成:通过
  • Schema 验证:通过(2 项通过,1 项警告)
    • Schema 来源:DMTF ✓,OEM ✗(实际参与校验:DMTF)
    • 入口 schema 文件:dmtf/NetworkAdapter.v1_12_1.json(DMTF 官方 schema(SchemaFiles/dmtf))
    • Schema 依据:静态校验直接依据:DMTF 官方 schema(SchemaFiles/dmtf)(dmtf/NetworkAdapter.v1_12_1.json)
  • 规则合规性检查:通过(18 项检查全部通过)

评审点 4:

结果:通过

  • URI 示例生成:通过
  • Schema 验证:通过(0 项通过,5 项警告)
    • Schema 来源:DMTF ✓,OEM ✗(实际参与校验:DMTF)
    • 入口 schema 文件:dmtf/EthernetInterface.v1_12_0.json(DMTF 官方 schema(SchemaFiles/dmtf))
    • Schema 依据:静态校验直接依据:DMTF 官方 schema(SchemaFiles/dmtf)(dmtf/EthernetInterface.v1_12_0.json)
  • 规则合规性检查:通过(18 项检查全部通过)

评审点4的state和health缺少描述

InterfaceEnabled、LinkState、DeviceEnabled、AutoSpeedNegotiationEnabled不是readonly

操作权限写清楚read:readonly,表示读权限是readonly

枚举值的取值在约束那写一下