summaryrefslogtreecommitdiffstats
path: root/src/example
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-23 17:58:12 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-04 22:40:30 -0400
commit0e7df1317a055fd0a3e15fb46b1e78b6887ee2c8 (patch)
tree015e03140cb2fecc893f6c7a0236898fd928dac8 /src/example
parent05b0c1eef9de3dcd56fd2eee65db9e228231d3f7 (diff)
downloadphosphor-dbus-monitor-0e7df1317a055fd0a3e15fb46b1e78b6887ee2c8.tar.gz
phosphor-dbus-monitor-0e7df1317a055fd0a3e15fb46b1e78b6887ee2c8.zip
Add path and path group support
Add support for defining groups of object paths. Groups are a list of path/metadata tuples. Metadata can be used to give a path context when required. Change-Id: I355ebf76b40f2ffc8d783e94e888b930cde8ee9c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/example')
-rw-r--r--src/example/example.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/example/example.yaml b/src/example/example.yaml
index 5a798e9..87c9790 100644
--- a/src/example/example.yaml
+++ b/src/example/example.yaml
@@ -1 +1,28 @@
# Example PDM configuration file.
+
+- name: example path group
+ description: >
+ 'A path group is a named collection of DBus object
+ paths and associated metadata. These collections
+ serve only to be referenced by other configuration
+ directives.
+
+ The metadata element has different uses depending
+ on the referencing directive.
+
+ Within a single configuration file path group names
+ must be unique. The same name can appear in multiple
+ configuration files; however, the referencing directive
+ will only search for the group in the same configuration
+ file.'
+ class: group
+ group: path
+ members:
+ - meta: path
+ path: /xyz/openbmc_project/testing/inst1
+ - meta: path
+ path: /xyz/openbmc_project/testing/inst2
+ - meta: path
+ path: /xyz/openbmc_project/testing/inst3
+ - meta: path
+ path: /xyz/openbmc_project/testing/inst4
OpenPOWER on IntegriCloud