Draft implementation of integration tests
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / OFFrameDecoder.java
index 650fe3b51f906ff0317493795481ee57b8126a24..410ca68be918561af17f4e63c9555267fda24a25 100644 (file)
@@ -66,7 +66,8 @@ public class OFFrameDecoder extends ByteToMessageDecoder {
     private static void enableOFVersionDetector(ChannelHandlerContext ctx) {
         if (ctx.pipeline().get(COMPONENT_NAMES.OF_VERSION_DETECTOR.name()) == null) {
             LOGGER.info("Adding OFVD");
-            ctx.pipeline().addLast(COMPONENT_NAMES.OF_VERSION_DETECTOR.name(), new OFVersionDetector());
+            ctx.pipeline().addAfter(COMPONENT_NAMES.OF_FRAME_DECODER.name(), 
+                    COMPONENT_NAMES.OF_VERSION_DETECTOR.name(), new OFVersionDetector());
         } else {
             LOGGER.debug("OFVD already in pipeline");
         }