use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmMplsBosDeserializer method addMplsBosValue.
private static void addMplsBosValue(ByteBuf input, MatchEntryBuilder builder) {
MplsBosCaseBuilder caseBuilder = new MplsBosCaseBuilder();
MplsBosBuilder bosBuilder = new MplsBosBuilder();
if (input.readUnsignedByte() != 0) {
bosBuilder.setBos(true);
} else {
bosBuilder.setBos(false);
}
caseBuilder.setMplsBos(bosBuilder.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 OxmMplsTcDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addMplsTcValue(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 OxmMplsTcDeserializer method addMplsTcValue.
private static void addMplsTcValue(ByteBuf input, MatchEntryBuilder builder) {
MplsTcCaseBuilder caseBuilder = new MplsTcCaseBuilder();
MplsTcBuilder tcBuilder = new MplsTcBuilder();
tcBuilder.setTc(input.readUnsignedByte());
caseBuilder.setMplsTc(tcBuilder.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 OxmSctpDstDeserializer method addSctpDstValue.
private static void addSctpDstValue(ByteBuf input, MatchEntryBuilder builder) {
SctpDstCaseBuilder caseBuilder = new SctpDstCaseBuilder();
SctpDstBuilder sctpBuilder = new SctpDstBuilder();
sctpBuilder.setPort(new PortNumber(input.readUnsignedShort()));
caseBuilder.setSctpDst(sctpBuilder.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 OxmSctpDstDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addSctpDstValue(input, builder);
return builder.build();
}
Aggregations