blob: a0acfd709f6e4dc33c709948290856c0004bbbe8 [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",
Patrick Williams20f38712022-12-08 06:18:26 -060016 "board_part_number": "PartNumber",
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050017 },
18 "system": {
19 "chassis_part_number": "Model",
Patrick Williams20f38712022-12-08 06:18:26 -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",
Patrick Williams20f38712022-12-08 06:18:26 -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",
Patrick Williams20f38712022-12-08 06:18:26 -060033 "product_serial": "SerialNumber",
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050034 },
Patrick Williams20f38712022-12-08 06:18:26 -060035 "fan": {"product_name": "PrettyName"},
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050036 "bmc": {
37 # "board_mfg_date": "BuildDate",
38 "board_mfg": "Manufacturer",
39 "board_product": "PrettyName",
40 "board_serial": "SerialNumber",
Patrick Williams20f38712022-12-08 06:18:26 -060041 "board_part_number": "PartNumber",
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050042 },
43 "powersupply": {
44 # "board_mfg_date": "BuildDate",
45 "board_product": "PrettyName",
46 "board_serial": "SerialNumber",
Patrick Williams20f38712022-12-08 06:18:26 -060047 "board_part_number": "PartNumber",
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050048 },
49 "gv100card": {
50 # "board_mfg_date": "BuildDate",
Patrick Williams20f38712022-12-08 06:18:26 -060051 },
Rahul Maheshwari35aa8d52018-03-11 23:56:51 -050052}