summaryrefslogtreecommitdiffstats
path: root/scripts/extra-properties-example.yaml
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-02-20 01:15:34 -0600
committerPatrick Williams <patrick@stwcx.xyz>2017-02-21 16:35:57 +0000
commitbe05107252a78bc4aced2d228e99b724ca65d2dd (patch)
tree50428b887dcf3eb9f3a0aa81d5372f907c8b9170 /scripts/extra-properties-example.yaml
parent7c183aede5886a741e95b15fbd166badcb601481 (diff)
downloadipmi-fru-parser-be05107252a78bc4aced2d228e99b724ca65d2dd.tar.gz
ipmi-fru-parser-be05107252a78bc4aced2d228e99b724ca65d2dd.zip
inventory: enable updating extra properties
While the IPMI FRU parser, in order to update inventory, receives most properties from the host IPMI, there could be some properties whose values could be provided by other sources, such as the Machine Readable Workbook. Provide a mechanism to enable the above by having the extra property information and values supplied via a YAML file, via which code is generated, which in turn can be used by the parser to update inventory. Change-Id: I30a2a9129d97485a0c31c3dec0155d5e1a008101 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'scripts/extra-properties-example.yaml')
-rw-r--r--scripts/extra-properties-example.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/extra-properties-example.yaml b/scripts/extra-properties-example.yaml
new file mode 100644
index 0000000..626ef33
--- /dev/null
+++ b/scripts/extra-properties-example.yaml
@@ -0,0 +1,11 @@
+/system/chassis/motherboard/cpu0:
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable: 'true'
+ xyz.openbmc_project.Inventory.Decorator.Cacheable:
+ Cached: 'true'
+
+/system/chassis/motherboard/dimm0:
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable: 'true'
+ xyz.openbmc_project.Inventory.Decorator.Cacheable:
+ Cached: 'true'
OpenPOWER on IntegriCloud