diff options
| author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-19 11:06:51 -0500 |
|---|---|---|
| committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-31 14:10:00 -0500 |
| commit | fa51da745c5be2ac85265af43333cf7af1047cb8 (patch) | |
| tree | 0e046bc5e02c23558ac67f04c4b03e85679dfd4d /example | |
| parent | 040e18b92bc0be25fc6a5e086474ab69a53e465c (diff) | |
| download | phosphor-inventory-manager-fa51da745c5be2ac85265af43333cf7af1047cb8.tar.gz phosphor-inventory-manager-fa51da745c5be2ac85265af43333cf7af1047cb8.zip | |
Add propertyIs filter
The existing property match filter tests a property
in the PropertiesChanged signal payload.
Add a match filter that tests any arbitrary property on
any object.
Change-Id: I1c238c03a3ccbf45f7b338693a4342fbd4f670c2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'example')
| -rw-r--r-- | example/events.d/match2.yaml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/example/events.d/match2.yaml b/example/events.d/match2.yaml index 047462d..a4e98f0 100644 --- a/example/events.d/match2.yaml +++ b/example/events.d/match2.yaml @@ -49,4 +49,36 @@ events: paths: - /deleteme3 + - name: Example Match + description: > + Destroys the /deleteme3 object when the value of + ExampleProperty3 on /testing/trigger4 is 99 + and the value of ExampleProperty2 on /testing/trigger4 + changes to "123". + type: match + signatures: + - type: signal + path: /testing/trigger4 + interface: org.freedesktop.DBus.Properties + member: PropertiesChanged + filters: + - name: propertyChangedTo + interface: xyz.openbmc_project.Example.Iface2 + property: ExampleProperty2 + value: + value: 123 + type: string + - name: propertyIs + path: /testing/trigger4 + interface: xyz.openbmc_project.Example.Iface2 + property: ExampleProperty3 + service: phosphor.inventory.test.example + value: + value: 99 + type: int64 + actions: + - name: destroyObjects + paths: + - /deleteme3 + # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |

