use of org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.set.queue.action._case.SetQueueAction in project openflowplugin by opendaylight.
the class OfToSalSetQueueCase method process.
@Override
public Optional<Action> process(@Nonnull final SetQueueCase source, final ActionResponseConvertorData data, ConvertorExecutor convertorExecutor) {
SetQueueAction queueActionFromOF = source.getSetQueueAction();
SetQueueActionBuilder setQueueAction = new SetQueueActionBuilder();
setQueueAction.setQueueId(queueActionFromOF.getQueueId());
return Optional.of(new SetQueueActionCaseBuilder().setSetQueueAction(setQueueAction.build()).build());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.set.queue.action._case.SetQueueAction in project openflowplugin by opendaylight.
the class SetQueueActionSerializer method serialize.
@Override
public void serialize(SetQueueActionCase action, ByteBuf outBuffer) {
super.serialize(action, outBuffer);
final SetQueueAction setQueueAction = action.getSetQueueAction();
outBuffer.writeInt(setQueueAction.getQueueId().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.set.queue.action._case.SetQueueAction in project openflowplugin by opendaylight.
the class SalToOfSetQueueActionCase method process.
@Nonnull
@Override
public Optional<Action> process(@Nonnull final SetQueueActionCase source, final ActionConvertorData data, ConvertorExecutor convertorExecutor) {
SetQueueAction setQueueAction = source.getSetQueueAction();
SetQueueCaseBuilder setQueueCaseBuilder = new SetQueueCaseBuilder();
SetQueueActionBuilder setQueueBuilder = new SetQueueActionBuilder();
setQueueBuilder.setQueueId(setQueueAction.getQueueId());
setQueueCaseBuilder.setSetQueueAction(setQueueBuilder.build());
return Optional.of(new ActionBuilder().setActionChoice(setQueueCaseBuilder.build()).build());
}
Aggregations