Update FRU field "FieldReplaceable"
A new entry has been updated to inventory to identify a property
using "FieldReplaceable" field. This is updated in inventory via
a new YAML file Decorator/Replaceable.interface.yaml and the
corresponding logic needs to be updated in test YAML FRU generator.
Resolves openbmc/openbmc-test-automation#395
Change-Id: I974516757adb6d9d28ef4bdd58cf4906e408a9e7
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/bin/generate_inventory b/bin/generate_inventory
index b96a745..a6650f4 100644
--- a/bin/generate_inventory
+++ b/bin/generate_inventory
@@ -13,7 +13,7 @@
from gen_print import *
# This list will be longer when more development codes are available.
-inventory_items = ['FRU']
+inventory_items = ['fru']
print_var(inventory_items)
fru_inventory_file_path = 'inventory.py'
print_var(fru_inventory_file_path)
@@ -32,12 +32,14 @@
item_yaml_file_path = base_dir_path + 'Item.interface.yaml'
asset_yaml_file_path = base_dir_path + 'Decorator/Asset.interface.yaml'
revision_yaml_file_path = base_dir_path + 'Decorator/Revision.interface.yaml'
+replaceable_yaml_file_path = base_dir_path + 'Decorator/Replaceable.interface.yaml'
# FRU list
yaml_fru_list = []
yaml_fru_list.append(item_yaml_file_path)
yaml_fru_list.append(asset_yaml_file_path)
yaml_fru_list.append(revision_yaml_file_path)
+yaml_fru_list.append(replaceable_yaml_file_path)
# Append to master list
yaml_master_list.append(yaml_fru_list)
diff --git a/data/inventory.py b/data/inventory.py
index 2796fe7..dc7ee9d 100644
--- a/data/inventory.py
+++ b/data/inventory.py
@@ -7,6 +7,7 @@
"Manufacturer",
"BuildDate",
"Model",
- "Version"
+ "Version",
+ "FieldReplaceable"
]
}
\ No newline at end of file