diff options
Diffstat (limited to 'deploy/launch.sh')
-rwxr-xr-x | deploy/launch.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy/launch.sh b/deploy/launch.sh index f9d915bf..fbffc98c 100755 --- a/deploy/launch.sh +++ b/deploy/launch.sh @@ -82,6 +82,11 @@ if [[ "$DEPLOY_HOST" == "true" || $REDEPLOY_HOST == "true" ]]; then echo $TYPE echo $DHA if [[ `echo $HOST_ROLES | grep opencontrail` ]]; then + ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" + installer_ip="192.168.200.2" + vgw_ip=$(sshpass -p 'root' ssh $ssh_options root@$installer_ip 'cat /home/opencontrail1.rc') + externet_cidr=$(sshpass -p 'root' ssh $ssh_options root@$installer_ip 'cat /home/opencontrail2.rc') + sudo ip route add $externet_cidr via $vgw_ip dev br-external 2>/dev/null sleep 60 python ${COMPASS_DIR}/deploy/reset_compute.py $TYPE $DHA sleep 600 |