#!/bin/bash ENABLE_ITM_DIRECT_TUNNELS=${ENABLE_ITM_DIRECT_TUNNELS:-false} cat > ${WORKSPACE}/set_itm_direct_tunnels.sh <false/itm-direct-tunnels>${ENABLE_ITM_DIRECT_TUNNELS}/g' /tmp/${BUNDLEFOLDER}/etc/opendaylight/datastore/initial/config/genius-ifm-config.xml cat /tmp/${BUNDLEFOLDER}/etc/opendaylight/datastore/initial/config/genius-ifm-config.xml EOF echo "Copying config files to ODL Controller folder" for i in `seq 1 ${NUM_ODL_SYSTEM}` do CONTROLLERIP=ODL_SYSTEM_${i}_IP echo "Setting itm-direct-tunnels to ${ENABLE_ITM_DIRECT_TUNNELS} on ${!CONTROLLERIP}" scp ${WORKSPACE}/set_itm_direct_tunnels.sh ${!CONTROLLERIP}:/tmp/ ssh ${!CONTROLLERIP} 'bash /tmp/set_itm_direct_tunnels.sh' done