blob: 7133271d1503bf08bb22594a72b87465da1284b8 [file] [log] [blame]
description: >
The sample events below serve to illustrate PIM features
and are also used by the PIM test suite.
events:
- name: setProperty + propertyChangedTo example
description: >
Sets the value of ExampleProperty1 on /changeme
when the value of ExampleProperty2 on
/testing/trigger2 changes to yyyxxx.
type: match
signatures:
- type: signal
interface: org.freedesktop.DBus.Properties
path: /testing/trigger2
member: PropertiesChanged
filters:
- name: propertyChangedTo
interface: xyz.openbmc_project.Example.Iface2
property: ExampleProperty2
value:
type: string
value: yyyxxx
actions:
- name: setProperty
interface: xyz.openbmc_project.Example.Iface1
property: ExampleProperty1
paths:
- /changeme
value:
type: string
value: changed
- name: createObjects + propertyChangedTo example
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
- name: startup event example
description: >
Create /createme3 at startup.
type: startup
actions:
- name: createObjects
objs:
/createme3:
xyz.openbmc_project.Example.Iface1:
ExampleProperty1:
value: foo
type: string
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4