use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.async.body.grouping.PacketInMaskBuilder in project openflowplugin by opendaylight.
the class SetAsyncInputMessageFactoryTest method createPacketInMask.
private static List<PacketInMask> createPacketInMask() {
final List<PacketInMask> masks = new ArrayList<>();
PacketInMaskBuilder builder;
// OFPCR_ROLE_EQUAL or OFPCR_ROLE_MASTER
builder = new PacketInMaskBuilder();
List<PacketInReason> packetInReasonList = new ArrayList<>();
packetInReasonList.add(PacketInReason.OFPRNOMATCH);
packetInReasonList.add(PacketInReason.OFPRACTION);
packetInReasonList.add(PacketInReason.OFPRINVALIDTTL);
builder.setMask(packetInReasonList);
masks.add(builder.build());
// OFPCR_ROLE_SLAVE
builder = new PacketInMaskBuilder();
packetInReasonList = new ArrayList<>();
builder.setMask(packetInReasonList);
masks.add(builder.build());
return masks;
}
Aggregations