Code Review
/
openflowjava.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Experimenter support for TableFeatures
[openflowjava.git]
/
openflow-protocol-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
openflowjava
/
protocol
/
impl
/
util
/
InstructionsSerializer.java
diff --git
a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/util/InstructionsSerializer.java
b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/util/InstructionsSerializer.java
index 196a7246314fc17e43bde66737e2f884851f3d59..be90d891142335745fe427afd8bf469033d73fe1 100644
(file)
--- a/
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/util/InstructionsSerializer.java
+++ b/
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/util/InstructionsSerializer.java
@@
-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)) {
} 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());
}
}
}
}
}
}