use of org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.push.pbb.action._case.PushPbbAction in project openflowplugin by opendaylight.
the class PushPbbActionSerializer method serialize.
@Override
public void serialize(PushPbbActionCase action, ByteBuf outBuffer) {
super.serialize(action, outBuffer);
final PushPbbAction pushPbbAction = action.getPushPbbAction();
outBuffer.writeShort(pushPbbAction.getEthernetType());
outBuffer.writeZero(ActionConstants.ETHERTYPE_ACTION_PADDING);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.push.pbb.action._case.PushPbbAction in project openflowplugin by opendaylight.
the class OfToSalPushPbbCase method process.
@Override
public Optional<Action> process(@Nonnull final PushPbbCase source, final ActionResponseConvertorData data, ConvertorExecutor convertorExecutor) {
PushPbbAction pushPbbActionFromOf = source.getPushPbbAction();
PushPbbActionBuilder pushPbbAction = new PushPbbActionBuilder();
pushPbbAction.setEthernetType(pushPbbActionFromOf.getEthertype().getValue());
return Optional.of(new PushPbbActionCaseBuilder().setPushPbbAction(pushPbbAction.build()).build());
}
Aggregations