summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-01-22 00:58:54 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-02-01 16:28:34 -0500
commiteb68a687575b31d5d69a8ed9a26a2a0877ebec57 (patch)
tree72b3b071e737a6ab9adce5a83a42bf3ba01007d3 /example
parentdb92c28ac9f354833753b451e4fba081c75d2564 (diff)
downloadphosphor-inventory-manager-eb68a687575b31d5d69a8ed9a26a2a0877ebec57.tar.gz
phosphor-inventory-manager-eb68a687575b31d5d69a8ed9a26a2a0877ebec57.zip
Add support for createObjects action
Change-Id: I999a5e506a236eac8ca0944b0e2b003c57612e54 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'example')
-rw-r--r--example/events.d/match1.yaml47
1 files changed, 46 insertions, 1 deletions
diff --git a/example/events.d/match1.yaml b/example/events.d/match1.yaml
index 2219c9f..0d53657 100644
--- a/example/events.d/match1.yaml
+++ b/example/events.d/match1.yaml
@@ -2,7 +2,7 @@ description: >
An example inventory match rule.
events:
- - name: Example Match(1)
+ - name: Example Match
description: >
Sets the value of ExampleProperty1 on /changeme
when the value of ExampleProperty2 on
@@ -29,4 +29,49 @@ events:
type: string
value: changed
+ - name: Example Match
+ description: >
+ Create /createme1 and /createme2 when the value of
+ ExampleProperty2 on /testing/trigger5 changes to abc123.
+ type: match
+ signatures:
+ - type: signal
+ interface: org.freedesktop.DBus.Properties
+ path: /testing/trigger5
+ member: PropertiesChanged
+ filters:
+ - name: propertyChangedTo
+ interface: xyz.openbmc_project.Example.Iface2
+ property: ExampleProperty2
+ value:
+ type: string
+ value: abc123
+ actions:
+ - name: createObjects
+ objs:
+ /createme1:
+ xyz.openbmc_project.Example.Iface1:
+ ExampleProperty1:
+ value: foo
+ type: string
+ xyz.openbmc_project.Example.Iface2:
+ ExampleProperty2:
+ value: bar
+ type: string
+ ExampleProperty3:
+ value: 999
+ type: int64
+ /createme2:
+ xyz.openbmc_project.Example.Iface1:
+ ExampleProperty1:
+ value: bar
+ type: string
+ xyz.openbmc_project.Example.Iface2:
+ ExampleProperty2:
+ value: foo
+ type: string
+ ExampleProperty3:
+ value: 888
+ type: int64
+
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
OpenPOWER on IntegriCloud