blob: 1fc8fe386eab44d47caeee8f6b4b68a0a438fa0e [file] [log] [blame]
Andrew Geissler2477d9a2016-11-22 12:09:21 -06001description:
2 Implement to provide the chassis power management
3
4properties:
5 - name: RequestedPowerTransition
6 type: enum[self.Transition]
7 default: 'Off'
8 description: >
9 The desired power transition to start on this chassis.
10 This will be preserved across AC power cycles of the BMC.
11
12 - name: CurrentPowerState
13 type: enum[self.PowerState]
14 description: >
15 A read-only property describing the current chassis power state.
16 A user can determine if a chassis is in transition by comparing
17 the CurrentPowerState and RequestedPowerTransition properties.
18
Andrew Geissler9c913322021-11-08 16:09:45 -060019 - name: CurrentPowerStatus
20 type: enum[self.PowerStatus]
21 description: >
22 A read-only property describing the current chassis power status.
23 This property aggregates all available information about the status
24 of the power coming into the chassis. Note that this is different
25 then the CurrentPowerState in that it provides status of the power
26 coming into the chassis, not the actual state of the chassis power.
27
Matt Spinlere0c06d72018-07-09 11:15:21 -050028 - name: LastStateChangeTime
29 type: uint64
30 description: >
31 The last time at which the chassis power changed state, as
32 tracked by the CurrentPowerState property, in epoch time,
33 in milliseconds. This can be used to tell when the chassis
34 was last powered on or off.
35
Andrew Geissler2477d9a2016-11-22 12:09:21 -060036enumerations:
37 - name: Transition
38 description: >
39 The desired power transition for the chassis
40 values:
41 - name: 'Off'
42 description: >
Jason M. Bills33e8e1d2019-06-03 16:31:29 -070043 Chassis power should be off
Andrew Geissler2477d9a2016-11-22 12:09:21 -060044 - name: 'On'
45 description: >
46 Chassis power should be on
Jason M. Bills33e8e1d2019-06-03 16:31:29 -070047 - name: 'PowerCycle'
48 description: >
49 Chassis power should be cycled from off to on. There will be a 5
50 second delay between the off and the on.
Andrew Geissler2477d9a2016-11-22 12:09:21 -060051
52 - name: PowerState
53 description: >
54 The current state of the chassis power
55 values:
56 - name: 'Off'
57 description: >
58 Chassis power is off
Andrew Geissler43341f52021-01-22 14:14:31 -060059 - name: 'TransitioningToOff'
60 description: >
61 Firmware is transitioning the chassis to an Off state
Andrew Geissler2477d9a2016-11-22 12:09:21 -060062 - name: 'On'
63 description: >
64 Chassis power is on
Andrew Geissler43341f52021-01-22 14:14:31 -060065 - name: 'TransitioningToOn'
66 description: >
67 Firmware is transitioning the chassis to an On state
Andrew Geissler9c913322021-11-08 16:09:45 -060068
69 - name: PowerStatus
70 description: >
71 The current status of the chassis power
72 values:
73 - name: 'Undefined'
74 description: >
75 Chassis power status is unknown
76 - name: 'BrownOut'
77 description: >
78 Chassis power status is in a brownout condition.
79 - name: 'UninterruptiblePowerSupply'
80 description: >
81 Chassis power is being provided via an uninterruptible power
82 supply. Note that some systems may choose to continue to use this
83 status, even once power has returned to the system, to indicate the
84 uninterruptible power supply is charging or is below a certain
85 threshold of charged. This provides system owners the flexibility on
86 whether their system requires a certain level of charged
87 uninterruptible power supply to be in a 'Good' state or not.
88 - name: 'Good'
89 description: >
90 Chassis power status is in a good condition