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