blob: 6c9be1ba486200c5434684163496215c0026a952 [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
Marissa Garza9778eb22020-06-30 13:21:07 -050010 FOR ${PDU_VAR} IN @{PDU_VAR_LIST}
11 Should Not Be Empty ${${PDU_VAR}} msg=Unable to find variable ${PDU_VAR}
12 END
Chris Austenb29d2e82016-06-07 12:25:35 -050013
14PDU Power Cycle
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -050015 [Documentation] Perform PDU power cycle.
Chris Austenb29d2e82016-06-07 12:25:35 -050016 Validate Prereq
17 Import Resource ${CURDIR}/../../lib/pdu/${PDU_TYPE}.robot
18 Power Cycle