Set bundle resync to true in configplan 97/71597/2
authorJamo Luhrsen <jluhrsen@redhat.com>
Mon, 30 Apr 2018 23:43:41 +0000 (16:43 -0700)
committerSam Hague <shague@redhat.com>
Tue, 1 May 2018 11:53:49 +0000 (11:53 +0000)
Change-Id: Iefda5cbc40f66b190b1b14664952a660d0c9d290
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/configplans/netvirt-1node-openstack.txt
csit/configplans/netvirt-3node-openstack.txt
csit/scripts/set_bundle_resync.sh [new file with mode: 0755]

index 4b29e200920247787e06ca70ac615a216d67af9b..a462aca804b1079aafcb6d2320e6992e947d9522 100644 (file)
@@ -4,3 +4,4 @@ integration/test/csit/scripts/set_federation_rabbit.sh
 integration/test/csit/scripts/set_log_counters.sh
 integration/test/csit/scripts/set_snat_mode.sh
 integration/test/csit/scripts/disable_ofp_stats.sh
+integration/test/csit/scripts/set_bundle_resync.sh
index 4b29e200920247787e06ca70ac615a216d67af9b..a462aca804b1079aafcb6d2320e6992e947d9522 100644 (file)
@@ -4,3 +4,4 @@ integration/test/csit/scripts/set_federation_rabbit.sh
 integration/test/csit/scripts/set_log_counters.sh
 integration/test/csit/scripts/set_snat_mode.sh
 integration/test/csit/scripts/disable_ofp_stats.sh
+integration/test/csit/scripts/set_bundle_resync.sh
diff --git a/csit/scripts/set_bundle_resync.sh b/csit/scripts/set_bundle_resync.sh
new file mode 100755 (executable)
index 0000000..fc29aa9
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+cat > ${WORKSPACE}/set_bundleresync_flag.sh <<EOF
+    export CONFFILE=\`find /tmp/${BUNDLEFOLDER} -name "*openflowplugin*config.cfg"\`
+    cp \$CONFFILE /tmp/${BUNDLEFOLDER}/etc/org.opendaylight.openflowplugin.cfg
+    sed -i "s/# bundle-based-reconciliation-enabled=false/bundle-based-reconciliation-enabled=true/" /tmp/${BUNDLEFOLDER}/etc/org.opendaylight.openflowplugin.cfg
+    cat /tmp/${BUNDLEFOLDER}/etc/org.opendaylight.openflowplugin.cfg
+EOF
+
+echo "Running bundleresync_flag script on ODL Controller(s)"
+for i in `seq 1 ${NUM_ODL_SYSTEM}`
+do
+        CONTROLLERIP=ODL_SYSTEM_${i}_IP
+
+        echo "Enabling bundleresync_flag on ${!CONTROLLERIP}"
+        scp ${WORKSPACE}/set_bundleresync_flag.sh ${!CONTROLLERIP}:/tmp/
+        ssh ${!CONTROLLERIP} 'bash /tmp/set_bundleresync_flag.sh'
+done
+
+rm ${WORKSPACE}/set_bundleresync_flag.sh