Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 1 | *** Settings *** |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 2 | Documentation Generic Protocol Distribution Unit (PDU) library |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 3 | |
Sandhya Somashekar | 839a0c2 | 2019-01-31 05:05:43 -0600 | [diff] [blame] | 4 | Resource ../../lib/resource.robot |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 5 | |
| 6 | *** Keywords *** |
| 7 | Validate Prereq |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 8 | [Documentation] Validate prerequisites for PDU. |
George Keishing | fb218a1 | 2018-11-28 11:20:42 -0600 | [diff] [blame] | 9 | ${PDU_VAR_LIST}= Create List PDU_TYPE PDU_IP PDU_USERNAME PDU_PASSWORD PDU_SLOT_NO |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 10 | : FOR ${PDU_VAR} IN @{PDU_VAR_LIST} |
| 11 | \ Should Not Be Empty ${${PDU_VAR}} msg=Unable to find variable ${PDU_VAR} |
| 12 | |
| 13 | PDU Power Cycle |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 14 | [Documentation] Perform PDU power cycle. |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 15 | Validate Prereq |
| 16 | Import Resource ${CURDIR}/../../lib/pdu/${PDU_TYPE}.robot |
| 17 | Power Cycle |