Add ping test in aclrecovery suite
[integration/test.git] / csit / scripts / set_elasticsearch_attribute_short.sh
index e41045d5e35e7cf198cab40a3a7af71ee2b69e71..c9bf798c9234ecd2c2f37c74f6e75a1e9a2c8167 100644 (file)
@@ -1,5 +1,4 @@
 #!/bin/bash
-echo "Setup short duration config to ${ODL_SYSTEM_IP}"
 
 cat > ${WORKSPACE}/org.apache.karaf.decanter.scheduler.simple.cfg <<EOF
 period=5000
@@ -8,6 +7,10 @@ EOF
 
 echo "Copying config files to ODL Controller folder"
 
-ssh ${ODL_SYSTEM_IP} "mkdir -p /tmp/${BUNDLEFOLDER}/etc/opendaylight/karaf/"
-
-scp ${WORKSPACE}/org.apache.karaf.decanter.scheduler.simple.cfg ${ODL_SYSTEM_IP}:/tmp/${BUNDLEFOLDER}/etc/
+for i in `seq 1 ${NUM_ODL_SYSTEM}`
+do
+        CONTROLLERIP=ODL_SYSTEM_${i}_IP
+        echo "Setup long duration config to ${!CONTROLLERIP}"
+        ssh ${!CONTROLLERIP} "mkdir -p /tmp/${BUNDLEFOLDER}/etc/opendaylight/karaf/"
+        scp ${WORKSPACE}/org.apache.karaf.decanter.scheduler.simple.cfg ${!CONTROLLERIP}:/tmp/${BUNDLEFOLDER}/etc/
+done