blob: 7e7c1b6b5711b3cb9180fca5d3cdc21ed7defde2 [file] [log] [blame]
Sergey Solomin62b55f32016-10-13 10:40:27 -05001How to use 'query' in the YAML file
2'query' contains information for settings_manager.py to search for
3and match inventory objects:
4
5query:
6 name: type
7 keyregex: "dimm"
8 subtree: "/org/openbmc/inventory"
9 matchregex: "/(dimm\d*)$"
10
11In the example above setting_manager.py will explore all existing
12objects at /org/openbmc/inventory that relate to the 'dimm' main
13category in the YAML file.
14The 'matchregex' will identify all objects with names that start with 'dimm',
15followed by any number of digits. The name should be at the end of the path.
16settings_manager.py will create a corresponding object with the same name,
17which is a group (dimm\d*).