compare_vpd

Description

Compares a VPD (Vital Product Data) keyword value to an expected value.

The following keywords are currently supported:

  • CCIN
  • Manufacturer
  • Model
  • PartNumber

Properties

NameRequiredTypeDescription
fruyesstringField-Replaceable Unit (FRU) that contains the VPD. Specify the relative D-Bus inventory path of the FRU. Full inventory paths begin with the root "/xyz/openbmc_project/inventory". Specify the relative path below the root, such as "system/chassis/disk_backplane".
keywordyesstringVPD keyword. Specify one of the following: "CCIN", "Manufacturer", "Model", "PartNumber".
valueyesstringExpected value.

Return Value

Returns true if the keyword value equals the expected value, otherwise returns false.

Example

{
  "comments": [ "Check if disk backplane has CCIN value 2D35" ],
  "compare_vpd": {
    "fru": "system/chassis/disk_backplane",
    "keyword": "CCIN",
    "value": "2D35"
  }
}