org.projectfloodlight.openflow.protocol.ver14.OFBsnHeaderVer14 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openflowj Show documentation
Show all versions of openflowj Show documentation
OpenFlowJ API supporting OpenFlow versions 1.0 through 1.5.1, generated by LoxiGen
The newest version!
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the source distribution
// Automatically generated by LOXI from template of_virtual_class.java
// Do not modify
package org.projectfloodlight.openflow.protocol.ver14;
import org.projectfloodlight.openflow.protocol.*;
import org.projectfloodlight.openflow.protocol.action.*;
import org.projectfloodlight.openflow.protocol.actionid.*;
import org.projectfloodlight.openflow.protocol.bsntlv.*;
import org.projectfloodlight.openflow.protocol.errormsg.*;
import org.projectfloodlight.openflow.protocol.meterband.*;
import org.projectfloodlight.openflow.protocol.instruction.*;
import org.projectfloodlight.openflow.protocol.instructionid.*;
import org.projectfloodlight.openflow.protocol.match.*;
import org.projectfloodlight.openflow.protocol.stat.*;
import org.projectfloodlight.openflow.protocol.oxm.*;
import org.projectfloodlight.openflow.protocol.oxs.*;
import org.projectfloodlight.openflow.protocol.queueprop.*;
import org.projectfloodlight.openflow.types.*;
import org.projectfloodlight.openflow.util.*;
import org.projectfloodlight.openflow.exceptions.*;
import io.netty.buffer.ByteBuf;
import java.util.Set;
abstract class OFBsnHeaderVer14 {
// version: 1.4
final static byte WIRE_VERSION = 5;
final static int MINIMUM_LENGTH = 16;
public final static OFBsnHeaderVer14.Reader READER = new Reader();
static class Reader implements OFMessageReader {
@Override
public OFBsnHeader readFrom(ByteBuf bb) throws OFParseError {
if(bb.readableBytes() < MINIMUM_LENGTH)
return null;
int start = bb.readerIndex();
// fixed value property version == 5
byte version = bb.readByte();
if(version != (byte) 0x5)
throw new OFParseError("Wrong version: Expected=OFVersion.OF_14(5), got="+version);
// fixed value property type == 4
byte type = bb.readByte();
if(type != (byte) 0x4)
throw new OFParseError("Wrong type: Expected=OFType.EXPERIMENTER(4), got="+type);
int length = U16.f(bb.readShort());
if(length < MINIMUM_LENGTH)
throw new OFParseError("Wrong length: Expected to be >= " + MINIMUM_LENGTH + ", was: " + length);
U32.f(bb.readInt());
// fixed value property experimenter == 0x5c16c7L
int experimenter = bb.readInt();
if(experimenter != 0x5c16c7)
throw new OFParseError("Wrong experimenter: Expected=0x5c16c7L(0x5c16c7L), got="+experimenter);
int subtype = bb.readInt();
bb.readerIndex(start);
switch(subtype) {
case 0x16:
// discriminator value 0x16L=0x16L for class OFBsnBwClearDataReplyVer14
return OFBsnBwClearDataReplyVer14.READER.readFrom(bb);
case 0x15:
// discriminator value 0x15L=0x15L for class OFBsnBwClearDataRequestVer14
return OFBsnBwClearDataRequestVer14.READER.readFrom(bb);
case 0x14:
// discriminator value 0x14L=0x14L for class OFBsnBwEnableGetReplyVer14
return OFBsnBwEnableGetReplyVer14.READER.readFrom(bb);
case 0x13:
// discriminator value 0x13L=0x13L for class OFBsnBwEnableGetRequestVer14
return OFBsnBwEnableGetRequestVer14.READER.readFrom(bb);
case 0x17:
// discriminator value 0x17L=0x17L for class OFBsnBwEnableSetReplyVer14
return OFBsnBwEnableSetReplyVer14.READER.readFrom(bb);
case 0x12:
// discriminator value 0x12L=0x12L for class OFBsnBwEnableSetRequestVer14
return OFBsnBwEnableSetRequestVer14.READER.readFrom(bb);
case 0xa:
// discriminator value 0xaL=0xaL for class OFBsnGetInterfacesReplyVer14
return OFBsnGetInterfacesReplyVer14.READER.readFrom(bb);
case 0x9:
// discriminator value 0x9L=0x9L for class OFBsnGetInterfacesRequestVer14
return OFBsnGetInterfacesRequestVer14.READER.readFrom(bb);
case 0x5:
// discriminator value 0x5L=0x5L for class OFBsnGetMirroringReplyVer14
return OFBsnGetMirroringReplyVer14.READER.readFrom(bb);
case 0x4:
// discriminator value 0x4L=0x4L for class OFBsnGetMirroringRequestVer14
return OFBsnGetMirroringRequestVer14.READER.readFrom(bb);
case 0x22:
// discriminator value 0x22L=0x22L for class OFBsnPduRxReplyVer14
return OFBsnPduRxReplyVer14.READER.readFrom(bb);
case 0x21:
// discriminator value 0x21L=0x21L for class OFBsnPduRxRequestVer14
return OFBsnPduRxRequestVer14.READER.readFrom(bb);
case 0x23:
// discriminator value 0x23L=0x23L for class OFBsnPduRxTimeoutVer14
return OFBsnPduRxTimeoutVer14.READER.readFrom(bb);
case 0x20:
// discriminator value 0x20L=0x20L for class OFBsnPduTxReplyVer14
return OFBsnPduTxReplyVer14.READER.readFrom(bb);
case 0x1f:
// discriminator value 0x1fL=0x1fL for class OFBsnPduTxRequestVer14
return OFBsnPduTxRequestVer14.READER.readFrom(bb);
case 0x3:
// discriminator value 0x3L=0x3L for class OFBsnSetMirroringVer14
return OFBsnSetMirroringVer14.READER.readFrom(bb);
case 0x19:
// discriminator value 0x19L=0x19L for class OFBsnSetPktinSuppressionReplyVer14
return OFBsnSetPktinSuppressionReplyVer14.READER.readFrom(bb);
case 0xb:
// discriminator value 0xbL=0xbL for class OFBsnSetPktinSuppressionRequestVer14
return OFBsnSetPktinSuppressionRequestVer14.READER.readFrom(bb);
case 0x10:
// discriminator value 0x10L=0x10L for class OFBsnVirtualPortCreateReplyVer14
return OFBsnVirtualPortCreateReplyVer14.READER.readFrom(bb);
case 0xf:
// discriminator value 0xfL=0xfL for class OFBsnVirtualPortCreateRequestVer14
return OFBsnVirtualPortCreateRequestVer14.READER.readFrom(bb);
case 0x1a:
// discriminator value 0x1aL=0x1aL for class OFBsnVirtualPortRemoveReplyVer14
return OFBsnVirtualPortRemoveReplyVer14.READER.readFrom(bb);
case 0x11:
// discriminator value 0x11L=0x11L for class OFBsnVirtualPortRemoveRequestVer14
return OFBsnVirtualPortRemoveRequestVer14.READER.readFrom(bb);
case 0x3c:
// discriminator value 0x3cL=0x3cL for class OFBsnArpIdleVer14
return OFBsnArpIdleVer14.READER.readFrom(bb);
case 0x39:
// discriminator value 0x39L=0x39L for class OFBsnControllerConnectionsReplyVer14
return OFBsnControllerConnectionsReplyVer14.READER.readFrom(bb);
case 0x38:
// discriminator value 0x38L=0x38L for class OFBsnControllerConnectionsRequestVer14
return OFBsnControllerConnectionsRequestVer14.READER.readFrom(bb);
case 0x28:
// discriminator value 0x28L=0x28L for class OFBsnFlowIdleVer14
return OFBsnFlowIdleVer14.READER.readFrom(bb);
case 0x27:
// discriminator value 0x27L=0x27L for class OFBsnFlowIdleEnableGetReplyVer14
return OFBsnFlowIdleEnableGetReplyVer14.READER.readFrom(bb);
case 0x26:
// discriminator value 0x26L=0x26L for class OFBsnFlowIdleEnableGetRequestVer14
return OFBsnFlowIdleEnableGetRequestVer14.READER.readFrom(bb);
case 0x25:
// discriminator value 0x25L=0x25L for class OFBsnFlowIdleEnableSetReplyVer14
return OFBsnFlowIdleEnableSetReplyVer14.READER.readFrom(bb);
case 0x24:
// discriminator value 0x24L=0x24L for class OFBsnFlowIdleEnableSetRequestVer14
return OFBsnFlowIdleEnableSetRequestVer14.READER.readFrom(bb);
case 0x31:
// discriminator value 0x31L=0x31L for class OFBsnGentableClearReplyVer14
return OFBsnGentableClearReplyVer14.READER.readFrom(bb);
case 0x30:
// discriminator value 0x30L=0x30L for class OFBsnGentableClearRequestVer14
return OFBsnGentableClearRequestVer14.READER.readFrom(bb);
case 0x2e:
// discriminator value 0x2eL=0x2eL for class OFBsnGentableEntryAddVer14
return OFBsnGentableEntryAddVer14.READER.readFrom(bb);
case 0x2f:
// discriminator value 0x2fL=0x2fL for class OFBsnGentableEntryDeleteVer14
return OFBsnGentableEntryDeleteVer14.READER.readFrom(bb);
case 0x32:
// discriminator value 0x32L=0x32L for class OFBsnGentableSetBucketsSizeVer14
return OFBsnGentableSetBucketsSizeVer14.READER.readFrom(bb);
case 0x34:
// discriminator value 0x34L=0x34L for class OFBsnGetSwitchPipelineReplyVer14
return OFBsnGetSwitchPipelineReplyVer14.READER.readFrom(bb);
case 0x33:
// discriminator value 0x33L=0x33L for class OFBsnGetSwitchPipelineRequestVer14
return OFBsnGetSwitchPipelineRequestVer14.READER.readFrom(bb);
case 0x2b:
// discriminator value 0x2bL=0x2bL for class OFBsnLacpConvergenceNotifVer14
return OFBsnLacpConvergenceNotifVer14.READER.readFrom(bb);
case 0x3f:
// discriminator value 0x3fL=0x3fL for class OFBsnLogVer14
return OFBsnLogVer14.READER.readFrom(bb);
case 0x42:
// discriminator value 0x42L=0x42L for class OFBsnLuaCommandReplyVer14
return OFBsnLuaCommandReplyVer14.READER.readFrom(bb);
case 0x41:
// discriminator value 0x41L=0x41L for class OFBsnLuaCommandRequestVer14
return OFBsnLuaCommandRequestVer14.READER.readFrom(bb);
case 0x43:
// discriminator value 0x43L=0x43L for class OFBsnLuaNotificationVer14
return OFBsnLuaNotificationVer14.READER.readFrom(bb);
case 0x40:
// discriminator value 0x40L=0x40L for class OFBsnLuaUploadVer14
return OFBsnLuaUploadVer14.READER.readFrom(bb);
case 0x3b:
// discriminator value 0x3bL=0x3bL for class OFBsnSetAuxCxnsReplyVer14
return OFBsnSetAuxCxnsReplyVer14.READER.readFrom(bb);
case 0x3a:
// discriminator value 0x3aL=0x3aL for class OFBsnSetAuxCxnsRequestVer14
return OFBsnSetAuxCxnsRequestVer14.READER.readFrom(bb);
case 0x2a:
// discriminator value 0x2aL=0x2aL for class OFBsnSetLacpReplyVer14
return OFBsnSetLacpReplyVer14.READER.readFrom(bb);
case 0x29:
// discriminator value 0x29L=0x29L for class OFBsnSetLacpRequestVer14
return OFBsnSetLacpRequestVer14.READER.readFrom(bb);
case 0x36:
// discriminator value 0x36L=0x36L for class OFBsnSetSwitchPipelineReplyVer14
return OFBsnSetSwitchPipelineReplyVer14.READER.readFrom(bb);
case 0x35:
// discriminator value 0x35L=0x35L for class OFBsnSetSwitchPipelineRequestVer14
return OFBsnSetSwitchPipelineRequestVer14.READER.readFrom(bb);
case 0x3d:
// discriminator value 0x3dL=0x3dL for class OFBsnTableSetBucketsSizeVer14
return OFBsnTableSetBucketsSizeVer14.READER.readFrom(bb);
case 0x2d:
// discriminator value 0x2dL=0x2dL for class OFBsnTimeReplyVer14
return OFBsnTimeReplyVer14.READER.readFrom(bb);
case 0x2c:
// discriminator value 0x2cL=0x2cL for class OFBsnTimeRequestVer14
return OFBsnTimeRequestVer14.READER.readFrom(bb);
case 0x46:
// discriminator value 0x46L=0x46L for class OFBsnVlanCounterClearVer14
return OFBsnVlanCounterClearVer14.READER.readFrom(bb);
case 0x44:
// discriminator value 0x44L=0x44L for class OFBsnGenericAsyncVer14
return OFBsnGenericAsyncVer14.READER.readFrom(bb);
case 0x47:
// discriminator value 0x47L=0x47L for class OFBsnGenericCommandVer14
return OFBsnGenericCommandVer14.READER.readFrom(bb);
case 0x48:
// discriminator value 0x48L=0x48L for class OFBsnGenericCommandReplyVer14
return OFBsnGenericCommandReplyVer14.READER.readFrom(bb);
case 0x45:
// discriminator value 0x45L=0x45L for class OFBsnTakeoverVer14
return OFBsnTakeoverVer14.READER.readFrom(bb);
default:
throw new OFParseError("Unknown value for discriminator subtype of class OFBsnHeaderVer14: " + subtype);
}
}
}
}