Inventory: Add Decorator.Dimension interface
Inventory items can report their dimensions (if applicable and
if specified by the manufacturer) via management APIs like Redfish.
For this purpose, this commit introduces a Decorator.Dimension
interface containing the following properties:
1. Height - The height of the item in meters.
2. Width - The width of the item in meters.
3. Depth - The depth of the item in meters.
Signed-off-by: Sharad Yadav <sharady@nvidia.com>
Change-Id: I2ac2dcd9743e8991c05eaf68acf856553ceecc55
diff --git a/yaml/xyz/openbmc_project/Inventory/Decorator/Dimension.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Decorator/Dimension.interface.yaml
new file mode 100644
index 0000000..8b3445b
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Inventory/Decorator/Dimension.interface.yaml
@@ -0,0 +1,16 @@
+description: >
+ Implement to provide physical dimension attributes.
+
+properties:
+ - name: Height
+ type: double
+ description: >
+ The height in meters.
+ - name: Width
+ type: double
+ description: >
+ The width in meters.
+ - name: Depth
+ type: double
+ description: >
+ The depth in meters.