Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 1 | description: > |
| 2 | An example inventory match rule. |
| 3 | |
| 4 | events: |
| 5 | - name: Example Match(1) |
| 6 | description: > |
Brad Bishop | 22ecacc | 2016-12-01 08:38:06 -0500 | [diff] [blame^] | 7 | Sets the value of ExampleProperty1 on /changeme |
| 8 | when the value of ExampleProperty2 on |
| 9 | /testing/inventory/trigger2 changes to yyyxxx. |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 10 | type: match |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 11 | signatures: |
| 12 | - type: signal |
| 13 | interface: org.freedesktop.DBus.Properties |
Brad Bishop | 22ecacc | 2016-12-01 08:38:06 -0500 | [diff] [blame^] | 14 | path: /testing/inventory/trigger2 |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 15 | member: PropertiesChanged |
Brad Bishop | 22ecacc | 2016-12-01 08:38:06 -0500 | [diff] [blame^] | 16 | filters: |
| 17 | - name: propertyChangedTo |
| 18 | args: |
| 19 | interface: xyz.openbmc_project.Example.Iface2 |
| 20 | property: ExampleProperty2 |
| 21 | value: |
| 22 | type: string |
| 23 | value: yyyxxx |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 24 | actions: |
Brad Bishop | e2e402f | 2016-11-30 18:00:17 -0500 | [diff] [blame] | 25 | - name: setProperty |
| 26 | args: |
| 27 | interface: xyz.openbmc_project.Example.Iface1 |
| 28 | property: ExampleProperty1 |
Brad Bishop | 22ecacc | 2016-12-01 08:38:06 -0500 | [diff] [blame^] | 29 | path: /changeme |
Brad Bishop | e2e402f | 2016-11-30 18:00:17 -0500 | [diff] [blame] | 30 | value: |
| 31 | type: string |
Brad Bishop | 22ecacc | 2016-12-01 08:38:06 -0500 | [diff] [blame^] | 32 | value: changed |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 33 | |
| 34 | # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |