blob: 98db0e2f9a7ae7b2f664526fa74e7913233f92c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
- name: chassis state
description: >
'Witherspoon has a single chassis to monitor.'
class: group
group: path
members:
- meta: CHASSISSTATE
path: /xyz/openbmc_project/state/chassis0
- name: chassis powered
description: >
'Monitor the chassis power state.'
class: group
group: property
type: string
members:
- interface: xyz.openbmc_project.State.Chassis
meta: CHASSIS_STATE
property: CurrentPowerState
- name: watch chassis state
description: >
'Trigger logic on chassis power state changes.'
class: watch
watch: property
paths: chassis state
properties: chassis powered
callback: check cooling type
- name: check power on
description: >
'If the chassis has power, enable PSU Thresholds.'
class: condition
condition: count
paths: chassis state
properties: chassis powered
callback: enable psu1 vout threshold
countop: '>'
countbound: 0
op: '=='
bound: xyz.openbmc_project.State.Chassis.PowerState.On
- name: check power off
description: >
'If the chassis has power, enable PSU Thresholds.'
class: condition
condition: count
paths: chassis state
properties: chassis powered
callback: disable psu1 vout threshold
countop: '>'
countbound: 0
op: '!='
bound: xyz.openbmc_project.State.Chassis.PowerState.On
- name: enable psu1 vout threshold
description: >
'Enable PSU0 Vout'
class: callback
callback: method
service: xyz.openbmc_project.PSUSensor
path: /xyz/openbmc_project/sensors/voltage/PSU1_Output_Voltage
interface: org.freedesktop.DBus.Properties
method: Set
args:
- value: xyz.openbmc_project.State.Decorator.Availability
type: string
- value: Available
type: string
- value: true
type: boolean
- name: disable psu0 vout threshold
description: >
'Enable PSU0 Vout'
class: callback
callback: method
service: xyz.openbmc_project.PSUSensor
path: /xyz/openbmc_project/sensors/voltage/PSU1_Output_Voltage
interface: org.freedesktop.DBus.Properties
method: Set
args:
- value: xyz.openbmc_project.State.Decorator.Availability
type: string
- value: Available
type: string
- value: false
type: boolean
|