1description:
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
19    - 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
28    - 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
36enumerations:
37    - name: Transition
38      description: >
39        The desired power transition for the chassis
40      values:
41        - name: 'Off'
42          description: >
43            Chassis power should be off
44        - name: 'On'
45          description: >
46            Chassis power should be on
47        - 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.
51
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
59        - name: 'TransitioningToOff'
60          description: >
61            Firmware is transitioning the chassis to an Off state
62        - name: 'On'
63          description: >
64            Chassis power is on
65        - name: 'TransitioningToOn'
66          description: >
67            Firmware is transitioning the chassis to an On state
68
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
91