问题描述
1、网卡卡文件配置中
bmc.dev.PCIeDevice.FunctionClass定义中
“description”: “功能分类(0:未知、1:RAID、2:网卡、3:GPU卡、4:存储卡(SSD卡/M.2卡)、5:SDI卡、6:加速卡、7:扩展卡(PCIe Riser)、8:FPGA卡、9:NPU卡、10:IB卡)”
bmc.kepler.Systems.PCIeDevices.PCIeCard.FunctionClass定义中,并无IB卡定义,是否也可以同步加上 “10:IB”卡
“description”: “功能分类(0:未知、1:RAID、2:网卡、3:GPU卡、4:存储卡(SSD卡/M.2卡)、5:SDI卡、6:加速卡、7:扩展卡(PCIe Riser)、8:FPGA卡、9:NPU卡)”
2、redfish接口/redfish/v1/Chassis/1/PCIeDevices/PCIeCard查询IB卡信息时,查询到PCIeCardType、FunctionType有疑问
代码中通过bmc.kepler.Systems.PCIeDevices.PCIeCard.FunctionClass去对应表里匹配信息,IB卡PCIeCard.FunctionClass在之前帖子中看应配置为2,导致FunctionType字段在type表内匹配显示为Net Card,是否正常

bmc.kepler.Systems.PCIeDevices.PCIeCard.FunctionClass对应表:
obj.FunctionType = type[ProcessingFlow[2].Destination.FunctionClass]
local type = {
\[0\] = nil,
\[1\] = 'RAID Card',
\[2\] = 'Net Card',
\[3\] = 'GPU Card',
\[4\] = 'Storage Card',
\[5\] = 'SDI Card',
\[6\] = 'Accelerate Card',
\[7\] = 'PCIe Riser Card',
\[8\] = 'FPGA Card',
\[9\] = 'NPU Card',
\[11\] = 'DPU Card'
}
obj.PCIeCardType = PCIeType[ProcessingFlow[2].Destination.FunctionClass]
local PCIeType = {
\[0\] = nil,
\[1\] = 'RAID',
\[2\] = 'NIC',
\[3\] = 'GPU',
\[4\] = 'SAS',
\[5\] = 'SDI',
\[6\] = 'Accelerate',
\[7\] = 'Riser',
\[8\] = 'FPGA',
\[9\] = 'NPU',
\[10\] = 'IB',
\[11\] = 'DPU'
}
