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 |
Brad Bishop | c93bcc9 | 2017-01-21 16:23:39 -0500 | [diff] [blame^] | 18 | interface: xyz.openbmc_project.Example.Iface2 |
| 19 | property: ExampleProperty2 |
| 20 | value: |
| 21 | type: string |
| 22 | value: yyyxxx |
Brad Bishop | 22cfbe6 | 2016-11-30 13:25:10 -0500 | [diff] [blame] | 23 | actions: |
Brad Bishop | e2e402f | 2016-11-30 18:00:17 -0500 | [diff] [blame] | 24 | - name: setProperty |
Brad Bishop | c93bcc9 | 2017-01-21 16:23:39 -0500 | [diff] [blame^] | 25 | interface: xyz.openbmc_project.Example.Iface1 |
| 26 | property: ExampleProperty1 |
| 27 | path: /changeme |
| 28 | value: |
| 29 | type: string |
| 30 | value: changed |
Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 31 | |
| 32 | # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |