| Gunnar Mills | 5fd5eea | 2018-01-26 13:50:51 -0600 | [diff] [blame] | 1 | description: > | 
 | 2 |     An interface to set whether the power supplies are redundant. | 
 | 3 | properties: | 
 | 4 |     - name: PowerSupplyRedundancyEnabled | 
 | 5 |       type: boolean | 
| Adriana Kobylak | 5af83f1 | 2018-08-17 13:04:41 -0500 | [diff] [blame] | 6 |       flags: | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 7 |           - const | 
| Gunnar Mills | 5fd5eea | 2018-01-26 13:50:51 -0600 | [diff] [blame] | 8 |       description: > | 
 | 9 |           When true, the power supplies are redundant. | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 10 |     - name: RotationEnabled | 
 | 11 |       type: boolean | 
 | 12 |       description: > | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 13 |           Cold redundancy rotation enabled or not. | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 14 |     - name: RotationAlgorithm | 
 | 15 |       type: enum[self.Algo] | 
 | 16 |       description: > | 
| Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 17 |           Rotation algorithm use for cold redundancy. 0 is BMC Specific, 1 is | 
 | 18 |           User Specific. | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 19 |     - name: RotationRankOrder | 
 | 20 |       type: array[byte] | 
 | 21 |       description: > | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 22 |           The rank order for each PSU, 0 means will not go into cold standby | 
 | 23 |           state. | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 24 |     - name: PeriodOfRotation | 
 | 25 |       type: uint32 | 
 | 26 |       description: > | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 27 |           Rotation Period for cold redundancy. If rotation algorithm is BMC | 
| Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 28 |           Specific, and rotation is enabled, BMC will change PSU rank order | 
 | 29 |           after this time. The unit of this PeriodOfRotation is in seconds. | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 30 |     - name: ColdRedundancyStatus | 
 | 31 |       type: enum[self.Status] | 
 | 32 |       description: > | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 33 |           Cold redundancy setting status, set in progress or set completed. | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 34 |     - name: PSUNumber | 
 | 35 |       type: byte | 
 | 36 |       description: > | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 37 |           Number of PSUs are currently on system. | 
| Kuiying Wang | 446ce84 | 2020-09-01 13:52:30 +0800 | [diff] [blame] | 38 |     - name: RedundantCount | 
 | 39 |       type: byte | 
 | 40 |       description: > | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 41 |           The min number of PSUs in the system required to obtain redundancy | 
| Kuiying Wang | 446ce84 | 2020-09-01 13:52:30 +0800 | [diff] [blame] | 42 |       default: 2 | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 43 |  | 
 | 44 | enumerations: | 
 | 45 |     - name: Algo | 
 | 46 |       description: > | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 47 |           Rotation algorithm use for cold redundancy. | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 48 |       values: | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 49 |           - name: bmcSpecific | 
 | 50 |             description: > | 
| Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 51 |                 With BMC Specific algorithm, when rotation happen, BMC will add | 
 | 52 |                 1 to the rank order in each PSU and change the last rank order | 
 | 53 |                 to the first rank order. | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 54 |           - name: userSpecific | 
 | 55 |             description: > | 
| Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 56 |                 With User Specific algorithm, user need to set the | 
 | 57 |                 RotationRankOrder every time before rotation happen, then BMC | 
 | 58 |                 will update the rank order to PSU. | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 59 |     - name: Status | 
 | 60 |       description: > | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 61 |           Cold redundancy setting status. | 
| Cheng C Yang | 1f0e2ce | 2019-05-27 21:49:09 +0800 | [diff] [blame] | 62 |       values: | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 63 |           - name: inProgress | 
 | 64 |             description: > | 
 | 65 |                 This status is only use for multi-node system, after any of the | 
 | 66 |                 property setting on one node, before all the nodes sync to same | 
 | 67 |                 value, the status will show in progress. | 
 | 68 |           - name: completed | 
 | 69 |             description: > | 
| Manojkiran Eda | 921791c | 2024-06-17 14:21:02 +0530 | [diff] [blame] | 70 |                 For single node system, the status always keep show completed. | 
| Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 71 |                 For multi-node system, only after all the nodes sync to same | 
 | 72 |                 value of the properties, the status will be completed. |