<artifactId>ovsdb.northbound</artifactId>
<version>0.5.0-SNAPSHOT</version>
</dependency>
+
+ <!-- openflowplugin -->
+ <dependency>
+ <groupId>org.opendaylight.openflowplugin</groupId>
+ <artifactId>openflowplugin</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </dependency>
+
+ <!-- openflowjava -->
+ <dependency>
+ <groupId>org.opendaylight.openflowjava</groupId>
+ <artifactId>openflow-protocol-impl</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.openflowjava</groupId>
+ <artifactId>openflow-protocol-api</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.openflowjava</groupId>
+ <artifactId>openflow-protocol-spi</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
</dependencies>
<build>
<resources>
<fileSet>
<directory>${project.build.directory}/generated-resources</directory>
<outputDirectory>/</outputDirectory>
+ <excludes>
+ <exclude>opendaylight/run.sh</exclude>
+ </excludes>
</fileSet>
</fileSets>
+ <files>
+ <file>
+ <source>${project.build.directory}/generated-resources/opendaylight/run.sh</source>
+ <outputDirectory>/opendaylight/</outputDirectory>
+ <destName>run.internal.sh</destName>
+ <fileMode>0755</fileMode>
+ </file>
+ <file>
+ <source>${basedir}/src/assemble/resources/run.sh</source>
+ <outputDirectory>/opendaylight/</outputDirectory>
+ <fileMode>0755</fileMode>
+ </file>
+ </files>
</assembly>
--- /dev/null
+#!/bin/bash
+
+# Whatever executable basename we happen to be, lets replace it
+# with run.internal.sh
+RUNSH_BASENAME=`basename $0`
+CONTROLLER_RUNSH=`echo $0|sed "s;$RUNSH_BASENAME;run.internal.sh;"`
+
+OF_FILTER=
+
+# Be extra careful to pass on usage from run.internal.sh, but add our
+# usage as well in the standard way
+function usage {
+ $CONTROLLER_RUNSH -help | sed 's/\[-help\]/\[-help\] \[-of13\] \[-bundlefilter \<bundlefilter\> \]/' | sed "s;$CONTROLLER_RUNSH;$0;"
+ exit 1
+}
+
+OF13=0
+BUNDLEFILTER=
+while true ; do
+ (( i += 1 ))
+ case "${@:$i:1}" in
+ -of13) OF13=1 ;;
+ -bundlefilter) (( i += 1 )); BUNDLEFILTER="|${@:$i:1}";;
+ -help) usage ;;
+ "") break ;;
+ esac
+done
+
+# OF Filter selection
+OF_FILTER="org.opendaylight.(openflowplugin|openflowjava)"
+if [ $OF13 -ne 0 ]; then
+ OF_FILTER="org.opendaylight.controller.(thirdparty.org.openflow|protocol_plugins.openflow)"
+fi
+
+# Make sure we suck out our additional args so as to not confuse
+# run.internal.sh
+NEWARGS=`echo $@|sed 's/-of13//'|sed 's/-bundlefilter[ \t]\+[^ \t]\+//'`
+
+# Build the filter string
+FILTERBEGINING='^(?!'
+FILTERENDING=').*'
+FILTER=${FILTERBEGINING}${OF_FILTER}${BUNDLEFILTER}${FILTERENDING}
+
+# Run the command
+$CONTROLLER_RUNSH -Dfelix.fileinstall.filter="$FILTER" $NEWARGS
fi
fi
-./run.base.sh -Dfelix.fileinstall.filter="^(?!org.opendaylight.(${ODL_VIRT_FILTER})).*" "${@:1:$virtIndex-1}" "${@:virtIndex+2}"
+./run.base.sh -bundlefilter "org.opendaylight.(${ODL_VIRT_FILTER})" "${@:1:$virtIndex-1}" "${@:virtIndex+2}"