1*** Settings ***
2Documentation           Generic Protocol Distribution Unit (PDU) library
3
4Resource        ../../lib/resource.robot
5
6*** Keywords ***
7Validate Prereq
8    [Documentation]  Validate prerequisites for PDU.
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
13PDU Power Cycle
14    [Documentation]  Perform PDU power cycle.
15    Validate Prereq
16    Import Resource  ${CURDIR}/../../lib/pdu/${PDU_TYPE}.robot
17    Power Cycle
18