Match and actions (de)serialization + fix
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / PacketOutInputMessageFactory.java
index dd3f72b22d5703a6cc67f874fa54e2fbe68ecb96..a05aefe3066135d3c33ca18841dfc8494e01e653 100644 (file)
@@ -4,6 +4,7 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.factories;
 import io.netty.buffer.ByteBuf;\r
 \r
 import org.opendaylight.openflowjava.protocol.impl.serialization.OFSerializer;\r
+import org.opendaylight.openflowjava.protocol.impl.util.ActionsSerializer;\r
 import org.opendaylight.openflowjava.protocol.impl.util.ByteBufUtils;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.PacketOutInput;\r
 \r
@@ -40,11 +41,10 @@ public class PacketOutInputMessageFactory implements OFSerializer<PacketOutInput
         out.writeInt(message.getBufferId().intValue());\r
         out.writeInt(message.getInPort().getValue().intValue());\r
         ByteBufUtils.padBuffer(PADDING_IN_PACKET_OUT_MESSAGE, out);\r
+        ActionsSerializer.encodeActions(message.getActionsList(), out);\r
         // TODO - finish implementation after Action serialization is done\r
         //out.writeShort(message.getActions().size());\r
-        // TODO - data field is not clearly defined\r
-        \r
-       \r
+        //out.writeBytes(message.getData());\r
     }\r
 \r
     @Override\r