xref: /openbmc/openbmc-test-automation/data/ipmi_rest_fru_field_map.py (revision 20f38712b324e61a94e174017c487a0af4b373e1)
1e7e9171eSGeorge Keishing#!/usr/bin/env python3
235aa8d53SRahul Maheshwari
335aa8d53SRahul Maheshwarir"""
435aa8d53SRahul MaheshwariIPMI REST FRU field mapping:
535aa8d53SRahul Maheshwari   - Define IPMI-REST FRU data fields mapping for different components.
635aa8d53SRahul Maheshwari   e.g. board_mfg field in IPMI is mapped to Manufacturer field in REST.
735aa8d53SRahul Maheshwari"""
835aa8d53SRahul Maheshwari
935aa8d53SRahul Maheshwari# TODO: Disabling board_mfg FRU field as logic needs to be added to test it.
1035aa8d53SRahul Maheshwariipmi_rest_fru_field_map = {
1135aa8d53SRahul Maheshwari    "cpu": {
1235aa8d53SRahul Maheshwari        # "board_mfg_date": "BuildDate",
1335aa8d53SRahul Maheshwari        "board_mfg": "Manufacturer",
1435aa8d53SRahul Maheshwari        "board_product": "PrettyName",
1535aa8d53SRahul Maheshwari        "board_serial": "SerialNumber",
16*20f38712SPatrick Williams        "board_part_number": "PartNumber",
1735aa8d53SRahul Maheshwari    },
1835aa8d53SRahul Maheshwari    "system": {
1935aa8d53SRahul Maheshwari        "chassis_part_number": "Model",
20*20f38712SPatrick Williams        "chassis_serial": "SerialNumber",
2135aa8d53SRahul Maheshwari    },
2235aa8d53SRahul Maheshwari    "motherboard": {
2335aa8d53SRahul Maheshwari        "board_mfg": "Manufacturer",
2435aa8d53SRahul Maheshwari        "board_product": "PrettyName",
2535aa8d53SRahul Maheshwari        "board_serial": "SerialNumber",
26*20f38712SPatrick Williams        "board_part_number": "PartNumber",
2735aa8d53SRahul Maheshwari    },
2835aa8d53SRahul Maheshwari    "dimm": {
2935aa8d53SRahul Maheshwari        "product_manufacturer": "Manufacturer",
3035aa8d53SRahul Maheshwari        "product_name": "PrettyName",
3135aa8d53SRahul Maheshwari        "product_part_number": "Model",
3235aa8d53SRahul Maheshwari        "product_version": "Version",
33*20f38712SPatrick Williams        "product_serial": "SerialNumber",
3435aa8d53SRahul Maheshwari    },
35*20f38712SPatrick Williams    "fan": {"product_name": "PrettyName"},
3635aa8d53SRahul Maheshwari    "bmc": {
3735aa8d53SRahul Maheshwari        # "board_mfg_date": "BuildDate",
3835aa8d53SRahul Maheshwari        "board_mfg": "Manufacturer",
3935aa8d53SRahul Maheshwari        "board_product": "PrettyName",
4035aa8d53SRahul Maheshwari        "board_serial": "SerialNumber",
41*20f38712SPatrick Williams        "board_part_number": "PartNumber",
4235aa8d53SRahul Maheshwari    },
4335aa8d53SRahul Maheshwari    "powersupply": {
4435aa8d53SRahul Maheshwari        # "board_mfg_date": "BuildDate",
4535aa8d53SRahul Maheshwari        "board_product": "PrettyName",
4635aa8d53SRahul Maheshwari        "board_serial": "SerialNumber",
47*20f38712SPatrick Williams        "board_part_number": "PartNumber",
4835aa8d53SRahul Maheshwari    },
4935aa8d53SRahul Maheshwari    "gv100card": {
5035aa8d53SRahul Maheshwari        # "board_mfg_date": "BuildDate",
51*20f38712SPatrick Williams    },
5235aa8d53SRahul Maheshwari}
53