blob: 0ada17648987ab911a5ea1be9e141abfd21c184f [file] [log] [blame]
George Keishinge7e91712021-09-03 11:28:44 -05001#!/usr/bin/env python3
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -05002
3r"""
4IPMI REST FRU field mapping:
5 - Define IPMI-REST FRU data fields mapping for different components.
6 e.g. board_mfg field in IPMI is mapped to Manufacturer field in REST.
7"""
8
9# TODO: Disabling board_mfg FRU field as logic needs to be added to test it.
10ipmi_rest_fru_field_map = {
11 "cpu": {
12 # "board_mfg_date": "BuildDate",
13 "board_mfg": "Manufacturer",
14 "board_product": "PrettyName",
15 "board_serial": "SerialNumber",
George Keishinge635ddc2022-12-08 07:38:02 -060016 "board_part_number": "PartNumber"
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050017 },
18 "system": {
19 "chassis_part_number": "Model",
George Keishinge635ddc2022-12-08 07:38:02 -060020 "chassis_serial": "SerialNumber"
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050021 },
22 "motherboard": {
23 "board_mfg": "Manufacturer",
24 "board_product": "PrettyName",
25 "board_serial": "SerialNumber",
George Keishinge635ddc2022-12-08 07:38:02 -060026 "board_part_number": "PartNumber"
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050027 },
28 "dimm": {
29 "product_manufacturer": "Manufacturer",
30 "product_name": "PrettyName",
31 "product_part_number": "Model",
32 "product_version": "Version",
George Keishinge635ddc2022-12-08 07:38:02 -060033 "product_serial": "SerialNumber"
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050034 },
George Keishinge635ddc2022-12-08 07:38:02 -060035 "fan": {
36 "product_name": "PrettyName"
37 },
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050038 "bmc": {
39 # "board_mfg_date": "BuildDate",
40 "board_mfg": "Manufacturer",
41 "board_product": "PrettyName",
42 "board_serial": "SerialNumber",
George Keishinge635ddc2022-12-08 07:38:02 -060043 "board_part_number": "PartNumber"
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050044 },
45 "powersupply": {
46 # "board_mfg_date": "BuildDate",
47 "board_product": "PrettyName",
48 "board_serial": "SerialNumber",
George Keishinge635ddc2022-12-08 07:38:02 -060049 "board_part_number": "PartNumber"
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050050 },
51 "gv100card": {
52 # "board_mfg_date": "BuildDate",
George Keishinge635ddc2022-12-08 07:38:02 -060053 }
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050054}