Addition of Location code interface.
This commit adds an interface yaml to publish location code of
an inventory item.
It will furnish data to the property ServiceLabel, under
Location->PartLocation on bmcweb, which will be used to publish
location code of any item.
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I9eaf6b539fe97d1df6d8d992980b96668b88d800
diff --git a/xyz/openbmc_project/Inventory/Decorator/LocationCode.interface.yaml b/xyz/openbmc_project/Inventory/Decorator/LocationCode.interface.yaml
new file mode 100644
index 0000000..a549b68
--- /dev/null
+++ b/xyz/openbmc_project/Inventory/Decorator/LocationCode.interface.yaml
@@ -0,0 +1,12 @@
+description: >
+ Implement to provide location code of an inventory item.
+properties:
+ - name: LocationCode
+ type: string
+ description:
+ A free form, implementation defined string to provide
+ location code of an Inventory Item.
+ Location codes can be used to identify specific parts
+ in a system. Although this field should not be used for
+ programmatic interrogation of an inventory object.
+ default: ""