1description: Implement to provide the chassis power management
2
3properties:
4    - name: RequestedPowerTransition
5      type: enum[self.Transition]
6      default: "Off"
7      description: >
8          The desired power transition to start on this chassis. This will be
9          preserved across AC power cycles of the BMC.
10
11    - name: CurrentPowerState
12      type: enum[self.PowerState]
13      description: >
14          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.
17
18    - name: CurrentPowerStatus
19      type: enum[self.PowerStatus]
20      description: >
21          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.
26
27    - name: LastStateChangeTime
28      type: uint64
29      description: >
30          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.
33
34enumerations:
35    - name: Transition
36      description: >
37          The desired power transition for the chassis
38      values:
39          - 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.
49
50    - name: PowerState
51      description: >
52          The current state of the chassis power
53      values:
54          - 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
66
67    - name: PowerStatus
68      description: >
69          The current status of the chassis power
70      values:
71          - 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
80                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.
87          - name: "Good"
88            description: >
89                Chassis power status is in a good condition
90