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 | |
| 4 | Resource ../../lib/resource.txt |
| 5 | |
| 6 | *** Keywords *** |
| 7 | Validate Prereq |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 8 | [Documentation] Validate prerequisites for PDU. |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 9 | ${PDU_VAR_LIST} = Create List PDU_TYPE PDU_IP PDU_USERNAME PDU_PASSWORD PDU_SLOT_NO |
| 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 |