@Override public void startDriverHandshake() { if (factory().getVersion() == OFVersion.OF_10) { OFFlowAdd.Builder fmBuilder = factory().buildFlowAdd(); fmBuilder.setPriority(LOWEST_PRIORITY); sendHandshakeMessage(fmBuilder.build()); } }
OFFlowAdd fm = factory().buildFlowAdd() .setXid(xid) .setCookie(U64.of(cookie))
@Override public OFFlowAdd buildFlowAdd() { Match match = buildMatch(); List<OFAction> actions = buildActions(); long cookie = flowRule().id().value(); OFFlowAdd fm = factory().buildFlowAdd() .setXid(xid) .setCookie(U64.of(cookie)) .setBufferId(OFBufferId.NO_BUFFER) .setActions(actions) .setMatch(match) .setFlags(Collections.singleton(OFFlowModFlags.SEND_FLOW_REM)) .setPriority(flowRule().priority()) .build(); return fm; }