3 # Use same path for run.internal.sh
4 RUNSH_DIR=$(dirname $0)
5 CONTROLLER_RUNSH=${RUNSH_DIR}/run.internal.sh
9 # Be extra careful to pass on usage from run.internal.sh, but add our
10 # usage as well in the standard way
12 $CONTROLLER_RUNSH -help | sed 's/\[-help\]/\[-help\] \[-of13\] \[-bundlefilter \<bundlefilter\> \]/' | sed "s;$CONTROLLER_RUNSH;$0;"
22 -bundlefilter) (( i += 1 )); BUNDLEFILTER="|${@:$i:1}";;
29 OF_FILTER="org.opendaylight.(openflowplugin|openflowjava)"
30 if [ $OF13 -ne 0 ]; then
31 OF_FILTER="org.opendaylight.controller.(thirdparty.org.openflow|protocol_plugins.openflow)"
34 # Make sure we suck out our additional args so as to not confuse
36 NEWARGS=`echo $@|sed 's/-of13//'|sed 's/-bundlefilter[ ]*[^ ]*//'`
38 # Build the filter string
41 FILTER=${FILTERBEGINING}${OF_FILTER}${BUNDLEFILTER}${FILTERENDING}
44 $CONTROLLER_RUNSH -Dfelix.fileinstall.filter="$FILTER" $NEWARGS