private TableStatisticsEntry buildTableStatistics(DeviceId deviceId, OFTableStatsEntry ofEntry) { TableStatisticsEntry entry = null; if (ofEntry != null) { entry = new DefaultTableStatisticsEntry(deviceId, ofEntry.getTableId().getValue(), ofEntry.getActiveCount(), ofEntry.getLookupCount().getValue(), ofEntry.getMatchedCount().getValue()); } return entry; } }
private OFInstruction buildTableGoto(Instructions.TableTypeTransition i) { OFInstruction instruction = factory().instructions().gotoTable( TableId.of(i.tableId())); return instruction; }
Optional.of(driverService)).buildMatch(); TableId tableId = TableId.of(fe.tableId());
case GOTO_TABLE: builder.transition(((int) ((OFInstructionGotoTable) in) .getTableId().getValue())); break; case WRITE_METADATA:
.setFlags(Collections.singleton(OFFlowModFlags.SEND_FLOW_REM)) .setPriority(flowRule().priority()) .setTableId(TableId.of(flowRule().tableId())) .build();
.withCookie(stat.getCookie().getValue()); if (stat.getVersion() != OFVersion.OF_10) { builder.forTable(stat.getTableId().getValue()); .withCookie(removed.getCookie().getValue()); if (removed.getVersion() != OFVersion.OF_10) { builder.forTable(removed.getTableId().getValue()); .withCookie(flowMod.getCookie().getValue()); if (flowMod.getVersion() != OFVersion.OF_10) { builder.forTable(flowMod.getTableId().getValue());
.setFlags(Collections.singleton(OFFlowModFlags.SEND_FLOW_REM)) .setPriority(flowRule().priority()) .setTableId(TableId.of(flowRule().tableId())) .build();
@Override public OFFlowMod buildFlowDel() { Match match = buildMatch(); long cookie = flowRule().id().value(); OFFlowDeleteStrict fm = factory().buildFlowDeleteStrict() .setXid(xid) .setCookie(U64.of(cookie)) .setBufferId(OFBufferId.NO_BUFFER) .setMatch(match) .setFlags(Collections.singleton(OFFlowModFlags.SEND_FLOW_REM)) .setPriority(flowRule().priority()) .setTableId(TableId.of(flowRule().tableId())) .build(); return fm; }