X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=bootstrap.sh;h=2eab51d3ede9307582ec2d5b6c589317183d9fbc;hp=12427d2f5ba6671402b14b2b7193e335fc536166;hb=79b92294d889c5f9243019afd28fe2ab0db0e22e;hpb=ac8b7ce3b05805a978b8186440e62dcd0d9023c3 diff --git a/bootstrap.sh b/bootstrap.sh index 12427d2f5b..2eab51d3ed 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -28,6 +28,9 @@ VIRL_PKEY=priv_key VIRL_SERVER_STATUS_FILE="status" VIRL_SERVER_EXPECTED_STATUS="PRODUCTION" +VIRL_TOPOLOGY=double-ring-nested.xenial +VIRL_RELEASE=csit-ubuntu-16.04.1_2016-12-19_1.6 + SSH_OPTIONS="-i ${VIRL_PKEY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o BatchMode=yes -o LogLevel=error" TEST_GROUPS=("bridge_domain,dhcp,gre,honeycomb,l2_xconnect,lisp,softwire" "cop,telemetry,ipsec,ipv6,rpf,tap,vrf" "fds,iacl,ipv4,policer,vlan,vxlan") @@ -166,7 +169,7 @@ for index in "${!VIRL_SERVER[@]}"; do scp ${SSH_OPTIONS} *.deb \ ${VIRL_USERNAME}@${VIRL_SERVER[${index}]}:${VIRL_DIR_LOC}/ - result=$? + result=$? if [ "${result}" -ne "0" ]; then echo "Failed to copy VPP deb files to VIRL host ${VIRL_SERVER[${index}]}" echo ${result} @@ -194,9 +197,9 @@ for index in "${!VIRL_SERVER[@]}"; do echo "Starting simulation nr. ${index} on VIRL server ${VIRL_SERVER[${index}]}" VIRL_SID[${index}]=$(ssh ${SSH_OPTIONS} \ ${VIRL_USERNAME}@${VIRL_SERVER[${index}]} \ - "start-testcase -c double-ring-nested ${VPP_DEBS_FULL[@]}") + "start-testcase -c ${VIRL_TOPOLOGY} -r ${VIRL_RELEASE} ${VPP_DEBS_FULL[@]}") retval=$? - if [ "$?" -ne "0" ]; then + if [ ${retval} -ne "0" ]; then echo "VIRL simulation start failed on ${VIRL_SERVER[${index}]}" exit ${retval} fi @@ -215,7 +218,7 @@ for index in "${!VIRL_SERVER[@]}"; do topologies/enabled/topology${index}.yaml retval=$? - if [ "$?" -ne "0" ]; then + if [ ${retval} -ne "0" ]; then echo "Failed to copy topology file from VIRL simulation nr. ${index} on VIRL server ${VIRL_SERVER[${index}]}" exit ${retval} fi