public WriteActionsCaseBuilder(WriteActionsCase base) { this._writeActions = base.getWriteActions(); if (base instanceof WriteActionsCaseImpl) { WriteActionsCaseImpl _impl = (WriteActionsCaseImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
private void writeActionsCase(WriteActionsCase writeActionCase) { List<Action> writeActions = writeActionCase.getWriteActions().getAction(); sortActionsByOrder(writeActions); this.pipelineActions.addAll(writeActions); }
if (other.getWriteActions() != null) { return false; } else if(!_writeActions.equals(other.getWriteActions())) { return false;
@Override public Optional<Instruction> process(final @Nonnull org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.WriteActionsCase source, final ActionConvertorData data, ConvertorExecutor convertorExecutor) { WriteActions writeActions = source.getWriteActions(); WriteActionsCaseBuilder writeActionsCaseBuilder = new WriteActionsCaseBuilder(); WriteActionsBuilder writeActionsBuilder = new WriteActionsBuilder(); final Optional<List<Action>> actions = convertorExecutor.convert(writeActions.getAction(), data); writeActionsBuilder.setAction(actions.orElse(Collections.emptyList())); writeActionsCaseBuilder.setWriteActions(writeActionsBuilder.build()); InstructionBuilder instructionBuilder = new InstructionBuilder(); instructionBuilder.setInstructionChoice(writeActionsCaseBuilder.build()); return Optional.of(instructionBuilder.build()); } }
} else if (instCase instanceof WriteActionsCase) { WriteActionsCase wrCase = (WriteActionsCase)instCase; acList = wrCase.getWriteActions();
private boolean isInstructionSupported(List<TableFeatureProperties> tableFeaturePropertiesList, Instruction instruction) { List<Instruction> supportedInstructions = getInstructionList(tableFeaturePropertiesList); for (Instruction supportedInstructionProxy : supportedInstructions) { org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.Instruction supportedInstruction = supportedInstructionProxy.getInstruction(); if (instruction.getInstruction().getImplementedInterface().equals(supportedInstruction.getImplementedInterface())) { if (instruction.getInstruction() instanceof ApplyActionsCase) { ApplyActionsCase applyActionsCase = (ApplyActionsCase) instruction.getInstruction(); List<Action> supportedApplyActions = getApplyActionList(tableFeaturePropertiesList); for (Action action : applyActionsCase.getApplyActions().getAction()) { if (!isActionSupported(supportedApplyActions, action)) { return false; } } if (instruction.getInstruction() instanceof WriteActionsCase) { WriteActionsCase writeActionsCase = (WriteActionsCase) instruction.getInstruction(); List<Action> supportedWriteActions = getWriteActionList(tableFeaturePropertiesList); for (Action action : writeActionsCase.getWriteActions().getAction()) { if (!isActionSupported(supportedWriteActions, action)) { return false; } } } } return true; } } return false; }