Bug 4567 - CSIT config xml contains outdated config
[integration/test.git] / csit / suites / sxp / scripts / basic_node_setup.sh
index 5a0b65952144fb130bbaafd1b2b70c8d6d5b5b36..ed8d173d9675e6eecead83a78038d5128d4b24b0 100644 (file)
@@ -1,6 +1,10 @@
 #!/bin/bash
 
-echo "Setup config to ${CONTROLLER0}"
-ssh ${CONTROLLER0} "mkdir -p /tmp/${BUNDLEFOLDER}/etc/opendaylight/karaf/"
+echo "Setup config to ${ODL_SYSTEM_IP}"
+ssh ${ODL_SYSTEM_IP} "mkdir -p /tmp/${BUNDLEFOLDER}/etc/opendaylight/karaf/"
 
-scp ${WORKSPACE}/test/csit/suites/sxp/basic/22-sxp-controller-one-node.xml ${CONTROLLER0}:/tmp/${BUNDLEFOLDER}/etc/opendaylight/karaf/
+if [ "${BRANCH#*/}" == "lithium" ]; then
+    scp ${WORKSPACE}/test/csit/suites/sxp/basic/22-sxp-controller-one-node-lithium.xml ${ODL_SYSTEM_IP}:/tmp/${BUNDLEFOLDER}/etc/opendaylight/karaf/22-sxp-controller-one-node.xml
+else
+    scp ${WORKSPACE}/test/csit/suites/sxp/basic/22-sxp-controller-one-node.xml ${ODL_SYSTEM_IP}:/tmp/${BUNDLEFOLDER}/etc/opendaylight/karaf/
+fi