Search in sources :

Example 1 with SetNwTtlAction

use of org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.set.nw.ttl.action._case.SetNwTtlAction in project openflowplugin by opendaylight.

the class SetNwTtlActionSerializer method serialize.

@Override
public void serialize(SetNwTtlActionCase action, ByteBuf outBuffer) {
    super.serialize(action, outBuffer);
    final SetNwTtlAction setNwTtlAction = action.getSetNwTtlAction();
    outBuffer.writeByte(setNwTtlAction.getNwTtl());
    outBuffer.writeZero(ActionConstants.SET_NW_TTL_PADDING);
}
Also used : SetNwTtlAction(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.set.nw.ttl.action._case.SetNwTtlAction)

Example 2 with SetNwTtlAction

use of org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.set.nw.ttl.action._case.SetNwTtlAction in project openflowplugin by opendaylight.

the class OfToSalSetNwTtlCase method process.

@Override
public Optional<Action> process(@Nonnull final SetNwTtlCase source, final ActionResponseConvertorData data, ConvertorExecutor convertorExecutor) {
    SetNwTtlAction setNwTtlActionFromOf = source.getSetNwTtlAction();
    SetNwTtlActionBuilder setNwTtl = new SetNwTtlActionBuilder();
    setNwTtl.setNwTtl(setNwTtlActionFromOf.getNwTtl());
    return Optional.of(new SetNwTtlActionCaseBuilder().setSetNwTtlAction(setNwTtl.build()).build());
}
Also used : SetNwTtlActionCaseBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.SetNwTtlActionCaseBuilder) SetNwTtlAction(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping.action.choice.set.nw.ttl._case.SetNwTtlAction) SetNwTtlActionBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.set.nw.ttl.action._case.SetNwTtlActionBuilder)

Aggregations

SetNwTtlActionCaseBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.SetNwTtlActionCaseBuilder)1 SetNwTtlAction (org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.set.nw.ttl.action._case.SetNwTtlAction)1 SetNwTtlActionBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.set.nw.ttl.action._case.SetNwTtlActionBuilder)1 SetNwTtlAction (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping.action.choice.set.nw.ttl._case.SetNwTtlAction)1