+# Copy over the config script to controller and execute it.
+for i in `seq 1 ${NUM_ODL_SYSTEM}`
+do
+ CONTROLLERIP=ODL_SYSTEM_${i}_IP
+ echo "Execute the configuration script on controller ${!CONTROLLERIP}"
+ scp ${WORKSPACE}/configuration-script.sh ${!CONTROLLERIP}:/tmp
+ ssh ${!CONTROLLERIP} "bash /tmp/configuration-script.sh ${i}"
+done
+
+echo "Locating config plan to use..."
+configplan_filepath="${WORKSPACE}/test/csit/configplans/${STREAMTESTPLAN}"
+if [ ! -f "${configplan_filepath}" ]; then
+ configplan_filepath="${WORKSPACE}/test/csit/configplans/${TESTPLAN}"
+fi
+
+if [ -f "${configplan_filepath}" ]; then
+ echo "configplan exists!!!"
+ echo "Changing the configplan path..."
+ cat ${configplan_filepath} | sed "s:integration:${WORKSPACE}:" > configplan.txt
+ cat configplan.txt
+ for line in $( egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' configplan.txt ); do
+ echo "Executing ${line}..."
+ source ${line}
+ done
+fi
+
+# Copy over the startup script to controller and execute it.
+for i in `seq 1 ${NUM_ODL_SYSTEM}`
+do
+ CONTROLLERIP=ODL_SYSTEM_${i}_IP
+ echo "Execute the startup script on controller ${!CONTROLLERIP}"
+ scp ${WORKSPACE}/startup-script.sh ${!CONTROLLERIP}:/tmp
+ ssh ${!CONTROLLERIP} "bash /tmp/startup-script.sh"
+done
+
+for i in `seq 1 ${NUM_ODL_SYSTEM}`
+do
+ CONTROLLERIP=ODL_SYSTEM_${i}_IP
+ echo "Execute the post startup script on controller ${!CONTROLLERIP}"
+ scp ${WORKSPACE}/post-startup-script.sh ${!CONTROLLERIP}:/tmp
+ ssh ${!CONTROLLERIP} "bash /tmp/post-startup-script.sh ${i}"
+done
+
+echo "Cool down for ${COOLDOWN_PERIOD} seconds :)..."
+sleep ${COOLDOWN_PERIOD}