netty4 OpenFlow southbound

- separate I/O thread and message dispatch threads

Change-Id: I11a10a47de451a9e3063b62f9450be19c3a9dae7
diff --git a/tools/build/onos-native-of-package b/tools/build/onos-native-of-package
new file mode 100755
index 0000000..c9af080
--- /dev/null
+++ b/tools/build/onos-native-of-package
@@ -0,0 +1,31 @@
+#!/bin/bash -e
+
+# Script to replace OF southbound with maven built artifact,
+# which can use native-transport inside karaf
+
+# Workadound until buck built artifact can build equivalent.
+
+cd $ONOS_ROOT || exit 1
+. tools/build/envDefaults
+
+echo "Preparing onos tarball"
+onos-package
+
+echo "Building onos-protocols-openflow-ctl with native-transport"
+mvn install -DskipTests -Dcheckstyle.skip -am --projects :onos-protocols-openflow-ctl -T 1C
+
+. tools/build/envDefaults
+
+echo "Repackaging onos tarball"
+cd $ONOS_STAGE_ROOT || exit 1
+tar xf $ONOS_TAR
+
+cp -p $ONOS_ROOT/protocols/openflow/ctl/target/onos-protocols-openflow-ctl-$ONOS_POM_VERSION.jar /tmp/onos-$ONOS_POM_VERSION/apache-karaf-$KARAF_VERSION/system/org/onosproject/onos-protocols-openflow-ctl/$ONOS_POM_VERSION/onos-protocols-openflow-ctl-$ONOS_POM_VERSION.jar
+
+rm $ONOS_TAR
+
+tar czf $ONOS_TAR onos-$ONOS_POM_VERSION/
+
+echo "Repackaged:"
+ls -l $ONOS_TAR
+