import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint16;
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint32;
+import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint64;
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint8;
import io.netty.buffer.ByteBuf;
-import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.action.rev140421.action.container.action.choice.ActionLearn;
.setIdleTimeout(readUint16(message))
.setHardTimeout(readUint16(message))
.setPriority(readUint16(message))
- // FIXME: what conversion are we trying to do here?
- .setCookie(BigInteger.valueOf(message.readLong()))
+ .setCookie(readUint64(message))
.setFlags(readUint16(message))
.setTableId(readUint8(message));
message.skipBytes(1);
*/
package org.opendaylight.openflowjava.nx.codec.match;
+import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint64;
+
import io.netty.buffer.ByteBuf;
-import java.math.BigInteger;
import org.opendaylight.openflowjava.protocol.api.keys.MatchEntryDeserializerKey;
import org.opendaylight.openflowjava.protocol.api.keys.MatchEntrySerializerKey;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
public MatchEntry deserialize(final ByteBuf message) {
return deserializeHeaderToBuilder(message)
.setMatchEntryValue(new TunIdCaseValueBuilder()
- .setTunIdValues(new TunIdValuesBuilder().setValue(BigInteger.valueOf(message.readLong())).build())
+ .setTunIdValues(new TunIdValuesBuilder().setValue(readUint64(message)).build())
.build())
.build();
}