cable: add cable type and cable decorator
Add cable type to the global schema types and cable decorator with
Length and Type properties.
Change-Id: I5368c16b91c94980be1b10cbfaf7969933e0507e
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/schemas/openbmc-dbus.json b/schemas/openbmc-dbus.json
index ace8cfa..bc9a988 100644
--- a/schemas/openbmc-dbus.json
+++ b/schemas/openbmc-dbus.json
@@ -69,6 +69,19 @@
"required": ["HostIndex"],
"type": "object"
},
+ "Cable": {
+ "additionalProperties": false,
+ "properties": {
+ "Length": {
+ "type": "number"
+ },
+ "Type": {
+ "enum": ["Optical", "Copper", "Unknown"]
+ }
+ },
+ "required": ["Length", "Type"],
+ "type": "object"
+ },
"Replaceable": {
"additionalProperties": false,
"properties": {