blob: 7c74a0455622f92ef35ec33a1984008aa99f04c4 [file] [log] [blame]
Patrick Williams8da396c2022-03-14 14:21:02 -05001description: Implement to provide the chassis power management
Andrew Geissler2477d9a2016-11-22 12:09:21 -06002
3properties:
4 - name: RequestedPowerTransition
5 type: enum[self.Transition]
Patrick Williams8da396c2022-03-14 14:21:02 -05006 default: "Off"
Andrew Geissler2477d9a2016-11-22 12:09:21 -06007 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06008 The desired power transition to start on this chassis. This will be
9 preserved across AC power cycles of the BMC.
Andrew Geissler2477d9a2016-11-22 12:09:21 -060010
11 - name: CurrentPowerState
12 type: enum[self.PowerState]
13 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060014 A read-only property describing the current chassis power state. A
15 user can determine if a chassis is in transition by comparing the
16 CurrentPowerState and RequestedPowerTransition properties.
Andrew Geissler2477d9a2016-11-22 12:09:21 -060017
Andrew Geissler9c913322021-11-08 16:09:45 -060018 - name: CurrentPowerStatus
19 type: enum[self.PowerStatus]
20 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060021 A read-only property describing the current chassis power status. This
22 property aggregates all available information about the status of the
23 power coming into the chassis. Note that this is different then the
24 CurrentPowerState in that it provides status of the power coming into
25 the chassis, not the actual state of the chassis power.
Andrew Geissler9c913322021-11-08 16:09:45 -060026
Matt Spinlere0c06d72018-07-09 11:15:21 -050027 - name: LastStateChangeTime
28 type: uint64
29 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060030 The last time at which the chassis power changed state, as tracked by
31 the CurrentPowerState property, in epoch time, in milliseconds. This
32 can be used to tell when the chassis was last powered on or off.
Matt Spinlere0c06d72018-07-09 11:15:21 -050033
Andrew Geissler2477d9a2016-11-22 12:09:21 -060034enumerations:
35 - name: Transition
36 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050037 The desired power transition for the chassis
Andrew Geissler2477d9a2016-11-22 12:09:21 -060038 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050039 - name: "Off"
40 description: >
41 Chassis power should be off
42 - name: "On"
43 description: >
44 Chassis power should be on
45 - name: "PowerCycle"
46 description: >
47 Chassis power should be cycled from off to on. There will be a 5
48 second delay between the off and the on.
Andrew Geissler2477d9a2016-11-22 12:09:21 -060049
50 - name: PowerState
51 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050052 The current state of the chassis power
Andrew Geissler2477d9a2016-11-22 12:09:21 -060053 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050054 - name: "Off"
55 description: >
56 Chassis power is off
57 - name: "TransitioningToOff"
58 description: >
59 Firmware is transitioning the chassis to an Off state
60 - name: "On"
61 description: >
62 Chassis power is on
63 - name: "TransitioningToOn"
64 description: >
65 Firmware is transitioning the chassis to an On state
Andrew Geissler9c913322021-11-08 16:09:45 -060066
67 - name: PowerStatus
68 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050069 The current status of the chassis power
Andrew Geissler9c913322021-11-08 16:09:45 -060070 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050071 - name: "Undefined"
72 description: >
73 Chassis power status is unknown
74 - name: "BrownOut"
75 description: >
76 Chassis power status is in a brownout condition.
77 - name: "UninterruptiblePowerSupply"
78 description: >
79 Chassis power is being provided via an uninterruptible power
Patrick Williamsa1347412022-12-06 10:56:22 -060080 supply. Note that some systems may choose to continue to use
81 this status, even once power has returned to the system, to
82 indicate the uninterruptible power supply is charging or is
83 below a certain threshold of charged. This provides system
84 owners the flexibility on whether their system requires a
85 certain level of charged uninterruptible power supply to be in a
86 'Good' state or not.
Patrick Williams8da396c2022-03-14 14:21:02 -050087 - name: "Good"
88 description: >
89 Chassis power status is in a good condition