From fcbedca0d847c27fdeab59cda9c6659d8640b6dd Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Tue, 25 Jul 2017 19:59:46 -0400 Subject: presence: Add parser support for any of Add support for the anyof yaml keyword. Change-Id: Ib28ca8ef9959cec29cb2d15a0bf758668375895f Signed-off-by: Brad Bishop --- presence/example/example.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'presence/example') diff --git a/presence/example/example.yaml b/presence/example/example.yaml index aea0139..140e1ec 100644 --- a/presence/example/example.yaml +++ b/presence/example/example.yaml @@ -64,3 +64,20 @@ rpolicy: type: fallback +- name: Example Fan3 + description: > + 'Example fan with anyof redundancy policy. + + The anyof algorithm reports true if any redundancy set + component sensors report true.' + path: /system/chassis/motherboard/fan3 + methods: + - type: gpio + key: 125 + physpath: /sys/devices/foo/bar + - type: tach + sensors: + - fan3 + rpolicy: + type: anyof + -- cgit v1.2.1