Updated integration to remove odl-aaa-all feature.
[integration/distribution.git] / distributions / virtualization / src / assemble / resources / run.sh
1 #!/bin/bash
2
3 # Use same path for run.base.sh
4 RUNSH_DIR=$(dirname $0)
5 RUN_BASE_SH=${RUNSH_DIR}/run.base.sh
6
7 function usage {
8     echo -e "You must select one of the 3 supported network virtualization technologies:\n\tovsdb | opendove | vtn"
9     echo "Usage: $0 -virt {ovsdb | opendove | vtn} [advanced options]"
10     echo "Advanced options: $($RUN_BASE_SH -help | sed "s;Usage: $RUN_BASE_SH ;;")"
11     exit 1
12 }
13
14 virtIndex=0
15 while true ; do
16     (( i += 1 ))
17     case "${@:$i:1}" in
18         -virt) virtIndex=$i ;;
19         "") break ;;
20     esac
21 done
22
23 # Virtualization edition select
24 if [ ${virtIndex} -eq 0 ]; then
25     usage
26 fi
27
28 virt=${@:$virtIndex+1:1}
29 if [ "${virt}" == "" ]; then
30     usage
31 else
32     if [ "${virt}" == "ovsdb" ]; then
33         ODL_VIRT_FILTER="opendove|vtn"
34     elif [ "${virt}" == "opendove" ]; then
35         ODL_VIRT_FILTER="ovsdb|vtn"
36     elif [ "${virt}" == "vtn" ]; then
37         ODL_VIRT_FILTER="opendove|ovsdb.openstack|controller.(arphandler|samples)"
38     else
39         usage
40     fi
41 fi
42
43 $RUN_BASE_SH -bundlefilter "org.opendaylight.(${ODL_VIRT_FILTER})" "${@:1:$virtIndex-1}" "${@:virtIndex+2}"