Append 3 more punt path protection TCs
[integration/test.git] / csit / scripts / set_bundle_resync.sh
1 #!/bin/bash
2
3 cat > ${WORKSPACE}/set_bundleresync_flag.sh <<EOF
4     export CONFFILE=\`find /tmp/${BUNDLEFOLDER} -name "*openflowplugin*config.cfg"\`
5     cp \$CONFFILE /tmp/${BUNDLEFOLDER}/etc/org.opendaylight.openflowplugin.cfg
6     sed -i "s/# bundle-based-reconciliation-enabled=false/bundle-based-reconciliation-enabled=true/" /tmp/${BUNDLEFOLDER}/etc/org.opendaylight.openflowplugin.cfg
7     cat /tmp/${BUNDLEFOLDER}/etc/org.opendaylight.openflowplugin.cfg
8 EOF
9
10 echo "Running bundleresync_flag script on ODL Controller(s)"
11 for i in `seq 1 ${NUM_ODL_SYSTEM}`
12 do
13         CONTROLLERIP=ODL_SYSTEM_${i}_IP
14
15         echo "Enabling bundleresync_flag on ${!CONTROLLERIP}"
16         scp ${WORKSPACE}/set_bundleresync_flag.sh ${!CONTROLLERIP}:/tmp/
17         ssh ${!CONTROLLERIP} 'bash /tmp/set_bundleresync_flag.sh'
18 done
19
20 rm ${WORKSPACE}/set_bundleresync_flag.sh