Search in sources :

Example 1 with PushPbbAction

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);
}
Also used : PushPbbAction(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.push.pbb.action._case.PushPbbAction)

Example 2 with PushPbbAction

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());
}
Also used : PushPbbActionBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.push.pbb.action._case.PushPbbActionBuilder) PushPbbActionCaseBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PushPbbActionCaseBuilder) PushPbbAction(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping.action.choice.push.pbb._case.PushPbbAction)

Aggregations

PushPbbActionCaseBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.PushPbbActionCaseBuilder)1 PushPbbAction (org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.push.pbb.action._case.PushPbbAction)1 PushPbbActionBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.push.pbb.action._case.PushPbbActionBuilder)1 PushPbbAction (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping.action.choice.push.pbb._case.PushPbbAction)1