dpu.vpd.dimm module

class dpu.vpd.dimm.DPUVpd(rank_path: str)

Bases: object

VPD information

Parameters:
  • rank_path (str) – the path of rank the VPD information is related to

  • rank_index (int) – the index of the rank in the DIMM (0|1)

  • vpd (struct_dpu_vpd_header) – internal representation of the vpd information

  • vpd_modified (bool) – indicates if the VPD information was modified

Raises:

DPUVpdError – if an error occurs

disable_dpu(slice_id: int, dpu_id: int) None

Disable a DPU

Parameters:
  • slice_id (int) – slice ID of the DPU to disable

  • dpu_id (int) – ID of the DPU to disable

enable_dpu(slice_id: int, dpu_id: int) None

Enable a DPU

Parameters:
  • slice_id (int) – slice ID of the DPU to enable

  • dpu_id (int) – ID of the DPU to enable

exception dpu.vpd.dimm.DPUVpdError

Bases: Exception

Error raised by the API