blob: 19d501a103e8dbc1e840a87af87642e8e4e3e1f0 [file] [log] [blame]
Brad Bishopbf066a62016-10-19 08:09:44 -04001description: >
2 An example inventory match rule.
3
4events:
5 - name: Example Match(1)
6 description: >
Brad Bishop22ecacc2016-12-01 08:38:06 -05007 Sets the value of ExampleProperty1 on /changeme
8 when the value of ExampleProperty2 on
9 /testing/inventory/trigger2 changes to yyyxxx.
Brad Bishopbf066a62016-10-19 08:09:44 -040010 type: match
Brad Bishop22cfbe62016-11-30 13:25:10 -050011 signatures:
12 - type: signal
13 interface: org.freedesktop.DBus.Properties
Brad Bishop22ecacc2016-12-01 08:38:06 -050014 path: /testing/inventory/trigger2
Brad Bishop22cfbe62016-11-30 13:25:10 -050015 member: PropertiesChanged
Brad Bishop22ecacc2016-12-01 08:38:06 -050016 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 Bishop22cfbe62016-11-30 13:25:10 -050024 actions:
Brad Bishope2e402f2016-11-30 18:00:17 -050025 - name: setProperty
26 args:
27 interface: xyz.openbmc_project.Example.Iface1
28 property: ExampleProperty1
Brad Bishop22ecacc2016-12-01 08:38:06 -050029 path: /changeme
Brad Bishope2e402f2016-11-30 18:00:17 -050030 value:
31 type: string
Brad Bishop22ecacc2016-12-01 08:38:06 -050032 value: changed
Brad Bishopbf066a62016-10-19 08:09:44 -040033
34# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4