schemas: Add Common.UUID interface
This adds UUID to under xyz.openbmc_project.Common in
openbmc-dbus.json which property UUID as described in [1].
This also adds xyz.openbmc_project.Common.UUID to under
EMConfig in global.json so that the interface can be
configured in the board's Entity Manager configuration file.
[1] https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Common/UUID.interface.yaml
Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com>
Change-Id: I62492928c2268c88754b4946d307022ba63e4c01
diff --git a/schemas/global.json b/schemas/global.json
index 11cd8bf..ab91c4d 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -132,6 +132,9 @@
],
"enum": ["Board", "Chassis", "NVMe", "PowerSupply"]
},
+ "xyz.openbmc_project.Common.UUID": {
+ "$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Common/UUID"
+ },
"xyz.openbmc_project.Inventory.Decorator.Asset": {
"$ref": "openbmc-dbus.json#/definitions/xyz/openbmc_project/Inventory/Decorator/Asset"
},
diff --git a/schemas/openbmc-dbus.json b/schemas/openbmc-dbus.json
index 36f4baf..99de989 100644
--- a/schemas/openbmc-dbus.json
+++ b/schemas/openbmc-dbus.json
@@ -103,6 +103,18 @@
"type": "object"
}
}
+ },
+ "Common": {
+ "UUID": {
+ "additionalProperties": false,
+ "properties": {
+ "UUID": {
+ "type": "string"
+ }
+ },
+ "required": ["UUID"],
+ "type": "object"
+ }
}
}
}