schemas: Add Inventory.Item.Storage interface
This commit adds the Item.Storage interface as described in [1].
Support the BSM with the `xyz.openbmc_project.Inventory.Item.Storage`
interface to label the hardware type.
[1] https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Inventory/Item/Storage.interface.yaml
Change-Id: I0655987262cd13aff32b376f8aa8baeff498afa4
Signed-off-by: Ingrid Chen <ingrid.chen.wiwynn@gmail.com>
diff --git a/configurations/bmc_storage_module.json b/configurations/bmc_storage_module.json
index 4dbfc8f..3162ae5 100644
--- a/configurations/bmc_storage_module.json
+++ b/configurations/bmc_storage_module.json
@@ -21,5 +21,6 @@
"PartNumber": "$BOARD_PART_NUMBER",
"SerialNumber": "$BOARD_SERIAL_NUMBER",
"SparePartNumber": "$BOARD_INFO_AM1"
- }
+ },
+ "xyz.openbmc_project.Inventory.Item.Storage": {}
}
diff --git a/schemas/global.json b/schemas/global.json
index 355c3c9..e05f2bf 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -134,6 +134,9 @@
},
"xyz.openbmc_project.Inventory.Item.BMC": {
"$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/BMC"
+ },
+ "xyz.openbmc_project.Inventory.Item.Storage": {
+ "$ref": "openbmc-dbus.json#/$defs/xyz/openbmc_project/Inventory/Item/Storage"
}
},
"required": ["Exposes", "Name", "Probe", "Type"]
diff --git a/schemas/openbmc-dbus.json b/schemas/openbmc-dbus.json
index fc733c8..75b4d74 100644
--- a/schemas/openbmc-dbus.json
+++ b/schemas/openbmc-dbus.json
@@ -131,6 +131,10 @@
"BMC": {
"additionalProperties": false,
"type": "object"
+ },
+ "Storage": {
+ "additionalProperties": false,
+ "type": "object"
}
}
},