Scripts added to enable the SFC-ODL test in CI
[functest.git] / testcases / features / sfc / server_presetup_CI.bash
1 #!/bin/bash
2 set -e
3 ssh_options='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
4 BASEDIR=`dirname $0`
5 INSTALLER_IP=${INSTALLER_IP:-10.20.0.2}
6
7 ip=`sshpass -p r00tme ssh $ssh_options root@10.20.0.2 'fuel node'|grep controller|awk '{print $10}' | head -1`
8 echo $ip
9 sshpass -p r00tme scp set-up-tacker.sh ${INSTALLER_IP}:/root
10 sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'scp set-up-tacker.sh '"$ip"':/root'
11 sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'ssh root@'"$ip"' bash set-up-tacker.sh'
12 sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'scp '"$ip"':/root/tackerc .'
13 sshpass -p r00tme scp ${INSTALLER_IP}:/root/tackerc $BASEDIR