use of org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.FlowCookie in project genius by opendaylight.
the class FlowEntity method getFlowBuilder.
public FlowBuilder getFlowBuilder() {
FlowBuilder flowBuilder = new FlowBuilder();
flowBuilder.setKey(new FlowKey(new FlowId(getFlowId())));
flowBuilder.setTableId(getTableId());
flowBuilder.setPriority(getPriority());
flowBuilder.setFlowName(getFlowName());
flowBuilder.setIdleTimeout(getIdleTimeOut());
flowBuilder.setHardTimeout(getHardTimeOut());
flowBuilder.setCookie(new FlowCookie(getCookie()));
flowBuilder.setMatch(MDSALUtil.buildMatches(getMatchInfoList()));
flowBuilder.setInstructions(MDSALUtil.buildInstructions(getInstructionInfoList()));
flowBuilder.setStrict(getStrictFlag());
// TODO flowBuilder.setResyncFlag(getResyncFlag());
if (getSendFlowRemFlag()) {
flowBuilder.setFlags(new FlowModFlags(false, false, false, false, true));
}
flowBuilder.setBarrier(false);
flowBuilder.setInstallHw(true);
return flowBuilder;
}
Aggregations