blob: 6c9be1ba486200c5434684163496215c0026a952 [file] [log] [blame]
*** 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}
END
PDU Power Cycle
[Documentation] Perform PDU power cycle.
Validate Prereq
Import Resource ${CURDIR}/../../lib/pdu/${PDU_TYPE}.robot
Power Cycle