public WriteMetadataCase build() { return new WriteMetadataCaseImpl(this); }
public ApplyActionsCase build() { return new ApplyActionsCaseImpl(this); }
public MeterCase build() { return new MeterCaseImpl(this); }
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.Instruction applyActionIns(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action... actions) { return new ApplyActionsCaseBuilder() .setApplyActions(new ApplyActionsBuilder() .setAction(actionList(actions)) .build()) .build(); }
public static Instruction gotoTableIns(short tableId) { return new GoToTableCaseBuilder().setGoToTable(new GoToTableBuilder().setTableId(tableId).build()).build(); }
public static WriteMetadataCase createInstructionMetadata(int order, BigInteger metadataVal, BigInteger metadataMask) { WriteMetadataBuilder wmb = new WriteMetadataBuilder(); wmb.setMetadata(metadataVal); wmb.setMetadataMask(metadataMask); WriteMetadataCaseBuilder wmcb = new WriteMetadataCaseBuilder().setWriteMetadata(wmb.build()); return wmcb.build(); }
public static Instruction writeActionIns(List<ActionBuilder> actions) { return new WriteActionsCaseBuilder() .setWriteActions(new WriteActionsBuilder().setAction(actionList(actions)).build()).build(); }
public ApplyActionsCaseBuilder(ApplyActionsCase base) { this._applyActions = base.getApplyActions(); if (base instanceof ApplyActionsCaseImpl) { ApplyActionsCaseImpl _impl = (ApplyActionsCaseImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
private void meterCase(MeterCase meterCase) { Meter meter = meterCase.getMeter(); this.meterId = meter.getMeterId().getValue(); }
public WriteActionsCaseBuilder(WriteActionsCase base) { this._writeActions = base.getWriteActions(); if (base instanceof WriteActionsCaseImpl) { WriteActionsCaseImpl _impl = (WriteActionsCaseImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
public MeterCaseBuilder(MeterCase base) { this._meter = base.getMeter(); if (base instanceof MeterCaseImpl) { MeterCaseImpl _impl = (MeterCaseImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
public GoToTableCaseBuilder(GoToTableCase base) { this._goToTable = base.getGoToTable(); if (base instanceof GoToTableCaseImpl) { GoToTableCaseImpl _impl = (GoToTableCaseImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
public WriteMetadataCaseBuilder(WriteMetadataCase base) { this._writeMetadata = base.getWriteMetadata(); if (base instanceof WriteMetadataCaseImpl) { WriteMetadataCaseImpl _impl = (WriteMetadataCaseImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
public GoToTableCase build() { return new GoToTableCaseImpl(this); }
public ClearActionsCase build() { return new ClearActionsCaseImpl(this); }
public WriteActionsCase build() { return new WriteActionsCaseImpl(this); }
public ClearActionsCaseBuilder(ClearActionsCase base) { this._clearActions = base.getClearActions(); if (base instanceof ClearActionsCaseImpl) { ClearActionsCaseImpl _impl = (ClearActionsCaseImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
public static org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.Instruction applyActionIns(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action... actions) { return new ApplyActionsCaseBuilder() .setApplyActions(new ApplyActionsBuilder() .setAction(actionList(actions)) .build()) .build(); }
/** * Create GOTO Table Instruction Builder * * @param ib Map InstructionBuilder without any instructions * @param tableId short representing a flow table ID short representing a flow table ID * @return ib Map InstructionBuilder with instructions */ public static InstructionBuilder createGotoTableInstructions(InstructionBuilder ib, short tableId) { GoToTableBuilder gttb = new GoToTableBuilder(); gttb.setTableId(tableId); // Wrap our Apply Action in an InstructionBuilder ib.setInstruction(new GoToTableCaseBuilder().setGoToTable(gttb.build()).build()); return ib; }
public static Instruction applyActionIns(Action... actions) { return new ApplyActionsCaseBuilder() .setApplyActions(new ApplyActionsBuilder().setAction(actionList(actions)).build()).build(); }