use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping.action.choice.set.nw.ttl._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);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping.action.choice.set.nw.ttl._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());
}
Aggregations