Experimenter support for TableFeatures
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / util / InstructionsSerializer.java
index 196a7246314fc17e43bde66737e2f884851f3d59..be90d891142335745fe427afd8bf469033d73fe1 100644 (file)
@@ -117,7 +117,9 @@ public abstract class InstructionsSerializer {
                 } else if (type.isAssignableFrom(Meter.class)) {
                     writeTypeAndLength(out, METER_TYPE, INSTRUCTION_IDS_LENGTH);
                 } else if (type.isAssignableFrom(Experimenter.class)) {
-                    writeTypeAndLength(out, EXPERIMENTER_TYPE, EXPERIMENTER_LENGTH);
+                    ExperimenterInstruction experimenter = instruction.getAugmentation(ExperimenterInstruction.class);
+                    writeTypeAndLength(out, EXPERIMENTER_TYPE, EncodeConstants.EXPERIMENTER_IDS_LENGTH);
+                    out.writeInt(experimenter.getExperimenter().intValue());
                 }
             }
         }