2 * Copyright (c) 2016 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.impl.protocol.deserialization.instruction;
11 import io.netty.buffer.ByteBuf;
12 import org.opendaylight.openflowjava.protocol.api.extensibility.HeaderDeserializer;
13 import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
14 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.Instruction;
17 public abstract class AbstractInstructionDeserializer implements OFDeserializer<Instruction>,
18 HeaderDeserializer<Instruction> {
21 * Skip first few bytes of instruction message because they are irrelevant.
23 * @param message Openflow buffered message
25 protected static void processHeader(ByteBuf message) {
26 message.skipBytes(2 * EncodeConstants.SIZE_OF_SHORT_IN_BYTES);