use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmVlanVidSerializerTest method testSerializeHeaderWithoutMask.
/**
* Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
MatchEntryBuilder builder = prepareVlanVidHeader(false);
ByteBuf buffer = PooledByteBufAllocator.DEFAULT.buffer();
serializer.serializeHeader(builder.build(), buffer);
checkHeader(buffer, false);
assertTrue("Unexpected data", buffer.readableBytes() == 0);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmVlanVidSerializerTest method prepareVlanVidHeader.
private static MatchEntryBuilder prepareVlanVidHeader(boolean hasMask) {
MatchEntryBuilder builder = new MatchEntryBuilder();
builder.setOxmClass(OpenflowBasicClass.class);
builder.setOxmMatchField(VlanVid.class);
builder.setHasMask(hasMask);
return builder;
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmIpv6SrcSerializerTest method prepareHeader.
private static MatchEntryBuilder prepareHeader(boolean hasMask) {
MatchEntryBuilder builder = new MatchEntryBuilder();
builder.setOxmClass(OpenflowBasicClass.class);
builder.setOxmMatchField(Ipv6Src.class);
builder.setHasMask(hasMask);
return builder;
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmMplsBosSerializerTest method prepareMplsBosHeader.
private static MatchEntryBuilder prepareMplsBosHeader(boolean hasMask) {
MatchEntryBuilder builder = new MatchEntryBuilder();
builder.setOxmClass(OpenflowBasicClass.class);
builder.setOxmMatchField(MplsBos.class);
builder.setHasMask(hasMask);
return builder;
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmMplsBosSerializerTest method testSerializeHeader.
/**
* Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
MatchEntryBuilder builder = prepareMplsBosHeader(false);
ByteBuf buffer = PooledByteBufAllocator.DEFAULT.buffer();
serializer.serializeHeader(builder.build(), buffer);
checkHeader(buffer, false);
assertTrue("Unexpected data", buffer.readableBytes() == 0);
}
Aggregations