use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.async.body.grouping.FlowRemovedMaskBuilder in project openflowplugin by opendaylight.
the class SetAsyncInputMessageFactoryTest method createFlowRemowedMask.
private static List<FlowRemovedMask> createFlowRemowedMask() {
final List<FlowRemovedMask> masks = new ArrayList<>();
FlowRemovedMaskBuilder builder;
// OFPCR_ROLE_EQUAL or OFPCR_ROLE_MASTER
builder = new FlowRemovedMaskBuilder();
List<FlowRemovedReason> flowRemovedReasonList = new ArrayList<>();
flowRemovedReasonList.add(FlowRemovedReason.OFPRRIDLETIMEOUT);
flowRemovedReasonList.add(FlowRemovedReason.OFPRRHARDTIMEOUT);
flowRemovedReasonList.add(FlowRemovedReason.OFPRRDELETE);
flowRemovedReasonList.add(FlowRemovedReason.OFPRRGROUPDELETE);
builder.setMask(flowRemovedReasonList);
masks.add(builder.build());
// OFPCR_ROLE_SLAVE
builder = new FlowRemovedMaskBuilder();
flowRemovedReasonList = new ArrayList<>();
builder.setMask(flowRemovedReasonList);
masks.add(builder.build());
return masks;
}
Aggregations