| Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 1 | description: > | 
|  | 2 | An example inventory match rule. | 
|  | 3 |  | 
|  | 4 | events: | 
| Brad Bishop | eb68a68 | 2017-01-22 00:58:54 -0500 | [diff] [blame^] | 5 | - name: Example Match | 
| Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 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 | 
| Brad Bishop | 8f86850 | 2017-01-23 13:13:58 -0500 | [diff] [blame] | 9 | /testing/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 | 8f86850 | 2017-01-23 13:13:58 -0500 | [diff] [blame] | 14 | path: /testing/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 |  | 
| Brad Bishop | eb68a68 | 2017-01-22 00:58:54 -0500 | [diff] [blame^] | 32 | - name: Example Match | 
|  | 33 | description: > | 
|  | 34 | Create /createme1 and /createme2 when the value of | 
|  | 35 | ExampleProperty2 on /testing/trigger5 changes to abc123. | 
|  | 36 | type: match | 
|  | 37 | signatures: | 
|  | 38 | - type: signal | 
|  | 39 | interface: org.freedesktop.DBus.Properties | 
|  | 40 | path: /testing/trigger5 | 
|  | 41 | member: PropertiesChanged | 
|  | 42 | filters: | 
|  | 43 | - name: propertyChangedTo | 
|  | 44 | interface: xyz.openbmc_project.Example.Iface2 | 
|  | 45 | property: ExampleProperty2 | 
|  | 46 | value: | 
|  | 47 | type: string | 
|  | 48 | value: abc123 | 
|  | 49 | actions: | 
|  | 50 | - name: createObjects | 
|  | 51 | objs: | 
|  | 52 | /createme1: | 
|  | 53 | xyz.openbmc_project.Example.Iface1: | 
|  | 54 | ExampleProperty1: | 
|  | 55 | value: foo | 
|  | 56 | type: string | 
|  | 57 | xyz.openbmc_project.Example.Iface2: | 
|  | 58 | ExampleProperty2: | 
|  | 59 | value: bar | 
|  | 60 | type: string | 
|  | 61 | ExampleProperty3: | 
|  | 62 | value: 999 | 
|  | 63 | type: int64 | 
|  | 64 | /createme2: | 
|  | 65 | xyz.openbmc_project.Example.Iface1: | 
|  | 66 | ExampleProperty1: | 
|  | 67 | value: bar | 
|  | 68 | type: string | 
|  | 69 | xyz.openbmc_project.Example.Iface2: | 
|  | 70 | ExampleProperty2: | 
|  | 71 | value: foo | 
|  | 72 | type: string | 
|  | 73 | ExampleProperty3: | 
|  | 74 | value: 888 | 
|  | 75 | type: int64 | 
|  | 76 |  | 
| Brad Bishop | bf066a6 | 2016-10-19 08:09:44 -0400 | [diff] [blame] | 77 | # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |