1#!/usr/bin/env python3
2
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": {"product_name": "PrettyName"},
36    "bmc": {
37        # "board_mfg_date": "BuildDate",
38        "board_mfg": "Manufacturer",
39        "board_product": "PrettyName",
40        "board_serial": "SerialNumber",
41        "board_part_number": "PartNumber",
42    },
43    "powersupply": {
44        # "board_mfg_date": "BuildDate",
45        "board_product": "PrettyName",
46        "board_serial": "SerialNumber",
47        "board_part_number": "PartNumber",
48    },
49    "gv100card": {
50        # "board_mfg_date": "BuildDate",
51    },
52}
53