Use correct kw when checking empty DS in netconf library
[integration/test.git] / csit / scripts / set_transaction_debugging.sh
1 #!/bin/bash
2
3
4 cat > ${WORKSPACE}/set_transaction_debugging.sh <<EOF
5
6     export CONFFILE=\`find /tmp/${BUNDLEFOLDER} -name "*cluster*datastore.cfg"\`
7     cp \$CONFFILE /tmp/${BUNDLEFOLDER}/etc/org.opendaylight.controller.cluster.datastore.cfg
8     echo "transaction-debug-context-enabled=true" >> /tmp/${BUNDLEFOLDER}/etc/org.opendaylight.controller.cluster.datastore.cfg
9     cat /tmp/${BUNDLEFOLDER}/etc/org.opendaylight.controller.cluster.datastore.cfg
10
11 EOF
12
13 echo "Copying config files to ODL Controller folder"
14 for i in `seq 1 ${NUM_ODL_SYSTEM}`
15 do
16         CONTROLLERIP=ODL_SYSTEM_${i}_IP
17
18         echo "Setting transaction-debug-context-enabled to true on ${!CONTROLLERIP}"
19         scp ${WORKSPACE}/set_transaction_debugging.sh ${!CONTROLLERIP}:/tmp/
20         ssh ${!CONTROLLERIP} 'bash /tmp/set_transaction_debugging.sh'
21
22 done