| *** Settings *** |
| Documentation Generic Protocol Distribution Unit (PDU) library |
| |
| Resource ../../lib/resource.robot |
| |
| *** Keywords *** |
| Validate Prereq |
| [Documentation] Validate prerequisites for PDU. |
| ${PDU_VAR_LIST}= Create List PDU_TYPE PDU_IP PDU_USERNAME PDU_PASSWORD PDU_SLOT_NO |
| : FOR ${PDU_VAR} IN @{PDU_VAR_LIST} |
| \ Should Not Be Empty ${${PDU_VAR}} msg=Unable to find variable ${PDU_VAR} |
| |
| PDU Power Cycle |
| [Documentation] Perform PDU power cycle. |
| Validate Prereq |
| Import Resource ${CURDIR}/../../lib/pdu/${PDU_TYPE}.robot |
| Power Cycle |