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",
16 "board_part_number": "PartNumber"
17 },
18 "system": {
19 "chassis_part_number": "Model",
20 "chassis_serial": "SerialNumber"
21 },
22 "motherboard": {
23 "board_mfg": "Manufacturer",
24 "board_product": "PrettyName",
25 "board_serial": "SerialNumber",
26 "board_part_number": "PartNumber"
27 },
28 "dimm": {
29 "product_manufacturer": "Manufacturer",
30 "product_name": "PrettyName",
31 "product_part_number": "Model",
32 "product_version": "Version",
33 "product_serial": "SerialNumber"
34 },
35 "fan": {
36 "product_name": "PrettyName"
37 },
38 "bmc": {
39 # "board_mfg_date": "BuildDate",
40 "board_mfg": "Manufacturer",
41 "board_product": "PrettyName",
42 "board_serial": "SerialNumber",
43 "board_part_number": "PartNumber"
44 },
45 "powersupply": {
46 # "board_mfg_date": "BuildDate",
47 "board_product": "PrettyName",
48 "board_serial": "SerialNumber",
49 "board_part_number": "PartNumber"
50 },
51 "gv100card": {
52 # "board_mfg_date": "BuildDate",
53 }
54}