blob: 3bd2b560d5cae15a44dd90b0f42d0e264d45b6ee [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -05002Documentation Generic Protocol Distribution Unit (PDU) library
Chris Austenb29d2e82016-06-07 12:25:35 -05003
Sandhya Somashekar839a0c22019-01-31 05:05:43 -06004Resource ../../lib/resource.robot
Chris Austenb29d2e82016-06-07 12:25:35 -05005
6*** Keywords ***
7Validate Prereq
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -05008 [Documentation] Validate prerequisites for PDU.
George Keishingfb218a12018-11-28 11:20:42 -06009 ${PDU_VAR_LIST}= Create List PDU_TYPE PDU_IP PDU_USERNAME PDU_PASSWORD PDU_SLOT_NO
Chris Austenb29d2e82016-06-07 12:25:35 -050010 : 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
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -050014 [Documentation] Perform PDU power cycle.
Chris Austenb29d2e82016-06-07 12:25:35 -050015 Validate Prereq
16 Import Resource ${CURDIR}/../../lib/pdu/${PDU_TYPE}.robot
17 Power Cycle