From: Peter Gubka Date: Tue, 6 Sep 2016 08:14:58 +0000 (+0200) Subject: moving bgp cluster configuration to configplans X-Git-Tag: release/boron~24^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=releng%2Fbuilder.git;a=commitdiff_plain;h=1a8e22e0e1b4bb399806077194395b7973c2d353 moving bgp cluster configuration to configplans this configuration is moved to configplans in https://git.opendaylight.org/gerrit/45172 Change-Id: I821aa5f3f8096404259bb2ad31842c9891cae8f4 Signed-off-by: Peter Gubka --- diff --git a/jjb/integration/include-raw-integration-configure-clustering.sh b/jjb/integration/include-raw-integration-configure-clustering.sh index bdb4eb2f7..820c3f609 100644 --- a/jjb/integration/include-raw-integration-configure-clustering.sh +++ b/jjb/integration/include-raw-integration-configure-clustering.sh @@ -5,7 +5,6 @@ echo "#################################################" AKKACONF=/tmp/${BUNDLEFOLDER}/configuration/initial/akka.conf MODULESCONF=/tmp/${BUNDLEFOLDER}/configuration/initial/modules.conf MODULESHARDSCONF=/tmp/${BUNDLEFOLDER}/configuration/initial/module-shards.conf -BGPCONF=/tmp/${BUNDLEFOLDER}/system/org/opendaylight/bgpcep/bgp-controller-config/*/bgp-controller-config-*-config-example.xml CONTROLLERMEM="2048m" if [ ${CONTROLLERSCOPE} == 'all' ]; then @@ -112,14 +111,6 @@ fi echo "Configuring cluster" /tmp/${BUNDLEFOLDER}/bin/configure_cluster.sh \$1 ${nodes_list} -echo "Update bgp configuration in 41-bgp-example.xml" -sed -i -e "s/example-ipv4-topology/example-ipv4-topology-\$1/g" ${BGPCONF} -sed -i -e "s/example-ipv6-topology/example-ipv6-topology-\$1/g" ${BGPCONF} -sed -i -e "s/example-linkstate-topology/example-linkstate-topology-\$1/g" ${BGPCONF} - -echo "Dump ${BGPCONF}" -cat ${BGPCONF} - echo "Dump akka.conf" cat ${AKKACONF} @@ -150,10 +141,15 @@ do done # Run config plan in case it exists -if [ -f ${WORKSPACE}/test/csit/configplans/${TESTPLAN} ]; then +configplan_filepath="${WORKSPACE}/test/csit/configplans/${STREAMTESTPLAN}" +if [ ! -f "${configplan_filepath}" ]; then + configplan_filepath="${WORKSPACE}/test/csit/configplans/${TESTPLAN}" +fi + +if [ -f ${configplan_filepath} ]; then echo "configplan exists!!!" echo "Reading the configplan:" - cat ${WORKSPACE}/test/csit/configplans/${TESTPLAN} | sed "s:integration:${WORKSPACE}:" > configplan.txt + cat ${configplan_filepath} | sed "s:integration:${WORKSPACE}:" > configplan.txt cat configplan.txt for line in $( egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' configplan.txt ); do echo "Executing ${line}..."