use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.action.grouping.action.choice.push.mpls._case.PushMplsAction in project openflowplugin by opendaylight.
the class PushMplsActionSerializer method serialize.
@Override
public void serialize(PushMplsActionCase action, ByteBuf outBuffer) {
super.serialize(action, outBuffer);
final PushMplsAction pushMplsAction = action.getPushMplsAction();
outBuffer.writeShort(pushMplsAction.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.mpls._case.PushMplsAction in project openflowplugin by opendaylight.
the class OfToSalPushMplsCase method process.
@Override
public Optional<Action> process(@Nonnull final PushMplsCase source, final ActionResponseConvertorData data, ConvertorExecutor convertorExecutor) {
PushMplsAction pushMplsActionFromOF = source.getPushMplsAction();
PushMplsActionBuilder pushMplsAction = new PushMplsActionBuilder();
pushMplsAction.setEthernetType(pushMplsActionFromOF.getEthertype().getValue());
return Optional.of(new PushMplsActionCaseBuilder().setPushMplsAction(pushMplsAction.build()).build());
}
Aggregations