Andrew Geissler | 2477d9a | 2016-11-22 12:09:21 -0600 | [diff] [blame] | 1 | description: |
| 2 | Implement to provide the chassis power management |
| 3 | |
| 4 | properties: |
| 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 | |
Matt Spinler | e0c06d7 | 2018-07-09 11:15:21 -0500 | [diff] [blame] | 19 | - name: LastStateChangeTime |
| 20 | type: uint64 |
| 21 | description: > |
| 22 | The last time at which the chassis power changed state, as |
| 23 | tracked by the CurrentPowerState property, in epoch time, |
| 24 | in milliseconds. This can be used to tell when the chassis |
| 25 | was last powered on or off. |
| 26 | |
Andrew Geissler | 2477d9a | 2016-11-22 12:09:21 -0600 | [diff] [blame] | 27 | enumerations: |
| 28 | - name: Transition |
| 29 | description: > |
| 30 | The desired power transition for the chassis |
| 31 | values: |
| 32 | - name: 'Off' |
| 33 | description: > |
Jason M. Bills | 33e8e1d | 2019-06-03 16:31:29 -0700 | [diff] [blame] | 34 | Chassis power should be off |
Andrew Geissler | 2477d9a | 2016-11-22 12:09:21 -0600 | [diff] [blame] | 35 | - name: 'On' |
| 36 | description: > |
| 37 | Chassis power should be on |
Jason M. Bills | 33e8e1d | 2019-06-03 16:31:29 -0700 | [diff] [blame] | 38 | - name: 'PowerCycle' |
| 39 | description: > |
| 40 | Chassis power should be cycled from off to on. There will be a 5 |
| 41 | second delay between the off and the on. |
Andrew Geissler | 2477d9a | 2016-11-22 12:09:21 -0600 | [diff] [blame] | 42 | |
| 43 | - name: PowerState |
| 44 | description: > |
| 45 | The current state of the chassis power |
| 46 | values: |
| 47 | - name: 'Off' |
| 48 | description: > |
| 49 | Chassis power is off |
| 50 | - name: 'On' |
| 51 | description: > |
| 52 | Chassis power is on |