use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping.action.choice.push.pbb._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.openflow.common.action.rev150203.action.grouping.action.choice.push.pbb._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