blob: 0ada17648987ab911a5ea1be9e141abfd21c184f [file] [log] [blame]
#!/usr/bin/env python3
r"""
IPMI REST FRU field mapping:
- Define IPMI-REST FRU data fields mapping for different components.
e.g. board_mfg field in IPMI is mapped to Manufacturer field in REST.
"""
# TODO: Disabling board_mfg FRU field as logic needs to be added to test it.
ipmi_rest_fru_field_map = {
"cpu": {
# "board_mfg_date": "BuildDate",
"board_mfg": "Manufacturer",
"board_product": "PrettyName",
"board_serial": "SerialNumber",
"board_part_number": "PartNumber"
},
"system": {
"chassis_part_number": "Model",
"chassis_serial": "SerialNumber"
},
"motherboard": {
"board_mfg": "Manufacturer",
"board_product": "PrettyName",
"board_serial": "SerialNumber",
"board_part_number": "PartNumber"
},
"dimm": {
"product_manufacturer": "Manufacturer",
"product_name": "PrettyName",
"product_part_number": "Model",
"product_version": "Version",
"product_serial": "SerialNumber"
},
"fan": {
"product_name": "PrettyName"
},
"bmc": {
# "board_mfg_date": "BuildDate",
"board_mfg": "Manufacturer",
"board_product": "PrettyName",
"board_serial": "SerialNumber",
"board_part_number": "PartNumber"
},
"powersupply": {
# "board_mfg_date": "BuildDate",
"board_product": "PrettyName",
"board_serial": "SerialNumber",
"board_part_number": "PartNumber"
},
"gv100card": {
# "board_mfg_date": "BuildDate",
}
}