use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmTcpDstDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addTcpDstValue(input, builder);
return builder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmTcpDstDeserializer method addTcpDstValue.
private static void addTcpDstValue(ByteBuf input, MatchEntryBuilder builder) {
TcpDstCaseBuilder caseBuilder = new TcpDstCaseBuilder();
TcpDstBuilder tcpBuilder = new TcpDstBuilder();
tcpBuilder.setPort(new PortNumber(input.readUnsignedShort()));
caseBuilder.setTcpDst(tcpBuilder.build());
builder.setMatchEntryValue(caseBuilder.build());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmTunnelIdDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addTunnelIdValue(input, builder);
return builder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmTunnelIdDeserializer method addTunnelIdValue.
private static void addTunnelIdValue(ByteBuf input, MatchEntryBuilder builder) {
final TunnelIdCaseBuilder caseBuilder = new TunnelIdCaseBuilder();
TunnelIdBuilder tunnelIdBuilder = new TunnelIdBuilder();
byte[] metadataBytes = new byte[EncodeConstants.SIZE_OF_LONG_IN_BYTES];
input.readBytes(metadataBytes);
tunnelIdBuilder.setTunnelId(metadataBytes);
if (builder.isHasMask()) {
tunnelIdBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.SIZE_OF_LONG_IN_BYTES));
}
caseBuilder.setTunnelId(tunnelIdBuilder.build());
builder.setMatchEntryValue(caseBuilder.build());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmUdpSrcDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addUdpSrcValue(input, builder);
return builder.build();
}
Aggregations