Signed-off-by: Prasanna Huddar <prasanna.huddar@ericsson.com>
Change-Id: Id6e8842a0e78486dfec6b439af716540318349fd
out.writeShort(message.getHardTimeout().intValue());\r
out.writeShort(message.getPriority());\r
out.writeInt(message.getBufferId().intValue());\r
out.writeShort(message.getHardTimeout().intValue());\r
out.writeShort(message.getPriority());\r
out.writeInt(message.getBufferId().intValue());\r
- out.writeInt(message.getOutPort().getValue().intValue());\r
- out.writeInt(message.getOutGroup().intValue());\r
+ if (message.getOutPort() != null) {\r
+ out.writeInt(message.getOutPort().getValue().intValue());\r
+ }\r
+ \r
+ if (message.getOutGroup() != null) {\r
+ out.writeInt(message.getOutGroup().intValue());\r
+ }\r
out.writeShort(createFlowModFlagsBitmask(message.getFlags()));\r
ByteBufUtils.padBuffer(PADDING_IN_FLOW_MOD_MESSAGE, out);\r
MatchSerializer.encodeMatch(message.getMatch(), out);\r
out.writeShort(createFlowModFlagsBitmask(message.getFlags()));\r
ByteBufUtils.padBuffer(PADDING_IN_FLOW_MOD_MESSAGE, out);\r
MatchSerializer.encodeMatch(message.getMatch(), out);\r
out.writeShort(message.getHardTimeout().intValue());\r
out.writeShort(message.getPriority());\r
out.writeInt(message.getBufferId().intValue());\r
out.writeShort(message.getHardTimeout().intValue());\r
out.writeShort(message.getPriority());\r
out.writeInt(message.getBufferId().intValue());\r
- out.writeShort(message.getOutPort().getValue().intValue());\r
+ if (null != message.getOutPort()) {\r
+ out.writeShort(message.getOutPort().getValue().intValue());\r
+ }\r
out.writeShort(createFlowModFlagsBitmask(message.getFlagsV10()));\r
OF10ActionsSerializer.encodeActionsV10(out, message.getActionsList());\r
}\r
out.writeShort(createFlowModFlagsBitmask(message.getFlagsV10()));\r
OF10ActionsSerializer.encodeActionsV10(out, message.getActionsList());\r
}\r