alshabib | 86ac11c | 2014-08-14 16:14:41 -0700 | [diff] [blame] | 1 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University |
| 2 | // Copyright (c) 2011, 2012 Open Networking Foundation |
| 3 | // Copyright (c) 2012, 2013 Big Switch Networks, Inc. |
| 4 | // This library was generated by the LoxiGen Compiler. |
| 5 | // See the file LICENSE.txt which should have been included in the source distribution |
| 6 | |
| 7 | // Automatically generated by LOXI from template of_virtual_class.java |
| 8 | // Do not modify |
| 9 | |
| 10 | package org.projectfloodlight.openflow.protocol.ver13; |
| 11 | |
| 12 | import org.projectfloodlight.openflow.protocol.*; |
| 13 | import org.projectfloodlight.openflow.protocol.action.*; |
| 14 | import org.projectfloodlight.openflow.protocol.actionid.*; |
| 15 | import org.projectfloodlight.openflow.protocol.bsntlv.*; |
| 16 | import org.projectfloodlight.openflow.protocol.errormsg.*; |
| 17 | import org.projectfloodlight.openflow.protocol.meterband.*; |
| 18 | import org.projectfloodlight.openflow.protocol.instruction.*; |
| 19 | import org.projectfloodlight.openflow.protocol.instructionid.*; |
| 20 | import org.projectfloodlight.openflow.protocol.match.*; |
| 21 | import org.projectfloodlight.openflow.protocol.oxm.*; |
| 22 | import org.projectfloodlight.openflow.protocol.queueprop.*; |
| 23 | import org.projectfloodlight.openflow.types.*; |
| 24 | import org.projectfloodlight.openflow.util.*; |
| 25 | import org.projectfloodlight.openflow.exceptions.*; |
| 26 | import org.jboss.netty.buffer.ChannelBuffer; |
| 27 | import java.util.Set; |
| 28 | |
| 29 | abstract class OFTableFeaturePropVer13 { |
| 30 | // version: 1.3 |
| 31 | final static byte WIRE_VERSION = 4; |
| 32 | final static int MINIMUM_LENGTH = 4; |
| 33 | |
| 34 | |
| 35 | public final static OFTableFeaturePropVer13.Reader READER = new Reader(); |
| 36 | |
| 37 | static class Reader implements OFMessageReader<OFTableFeatureProp> { |
| 38 | @Override |
| 39 | public OFTableFeatureProp readFrom(ChannelBuffer bb) throws OFParseError { |
| 40 | if(bb.readableBytes() < MINIMUM_LENGTH) |
| 41 | return null; |
| 42 | int start = bb.readerIndex(); |
| 43 | short type = bb.readShort(); |
| 44 | bb.readerIndex(start); |
| 45 | switch(type) { |
| 46 | case (short) 0x6: |
| 47 | // discriminator value 0x6=0x6 for class OFTableFeaturePropApplyActionsVer13 |
| 48 | return OFTableFeaturePropApplyActionsVer13.READER.readFrom(bb); |
| 49 | case (short) 0x7: |
| 50 | // discriminator value 0x7=0x7 for class OFTableFeaturePropApplyActionsMissVer13 |
| 51 | return OFTableFeaturePropApplyActionsMissVer13.READER.readFrom(bb); |
| 52 | case (short) 0xe: |
| 53 | // discriminator value 0xe=0xe for class OFTableFeaturePropApplySetfieldVer13 |
| 54 | return OFTableFeaturePropApplySetfieldVer13.READER.readFrom(bb); |
| 55 | case (short) 0xf: |
| 56 | // discriminator value 0xf=0xf for class OFTableFeaturePropApplySetfieldMissVer13 |
| 57 | return OFTableFeaturePropApplySetfieldMissVer13.READER.readFrom(bb); |
| 58 | case (short) 0xfffe: |
| 59 | // discriminator value 0xfffe=0xfffe for class OFTableFeaturePropExperimenterVer13 |
| 60 | return OFTableFeaturePropExperimenterVer13.READER.readFrom(bb); |
| 61 | case (short) 0xffff: |
| 62 | // discriminator value 0xffff=0xffff for class OFTableFeaturePropExperimenterMissVer13 |
| 63 | return OFTableFeaturePropExperimenterMissVer13.READER.readFrom(bb); |
| 64 | case (short) 0x0: |
| 65 | // discriminator value 0x0=0x0 for class OFTableFeaturePropInstructionsVer13 |
| 66 | return OFTableFeaturePropInstructionsVer13.READER.readFrom(bb); |
| 67 | case (short) 0x1: |
| 68 | // discriminator value 0x1=0x1 for class OFTableFeaturePropInstructionsMissVer13 |
| 69 | return OFTableFeaturePropInstructionsMissVer13.READER.readFrom(bb); |
| 70 | case (short) 0x8: |
| 71 | // discriminator value 0x8=0x8 for class OFTableFeaturePropMatchVer13 |
| 72 | return OFTableFeaturePropMatchVer13.READER.readFrom(bb); |
| 73 | case (short) 0x2: |
| 74 | // discriminator value 0x2=0x2 for class OFTableFeaturePropNextTablesVer13 |
| 75 | return OFTableFeaturePropNextTablesVer13.READER.readFrom(bb); |
| 76 | case (short) 0x3: |
| 77 | // discriminator value 0x3=0x3 for class OFTableFeaturePropNextTablesMissVer13 |
| 78 | return OFTableFeaturePropNextTablesMissVer13.READER.readFrom(bb); |
| 79 | case (short) 0xa: |
| 80 | // discriminator value 0xa=0xa for class OFTableFeaturePropWildcardsVer13 |
| 81 | return OFTableFeaturePropWildcardsVer13.READER.readFrom(bb); |
| 82 | case (short) 0x4: |
| 83 | // discriminator value 0x4=0x4 for class OFTableFeaturePropWriteActionsVer13 |
| 84 | return OFTableFeaturePropWriteActionsVer13.READER.readFrom(bb); |
| 85 | case (short) 0x5: |
| 86 | // discriminator value 0x5=0x5 for class OFTableFeaturePropWriteActionsMissVer13 |
| 87 | return OFTableFeaturePropWriteActionsMissVer13.READER.readFrom(bb); |
| 88 | case (short) 0xc: |
| 89 | // discriminator value 0xc=0xc for class OFTableFeaturePropWriteSetfieldVer13 |
| 90 | return OFTableFeaturePropWriteSetfieldVer13.READER.readFrom(bb); |
| 91 | case (short) 0xd: |
| 92 | // discriminator value 0xd=0xd for class OFTableFeaturePropWriteSetfieldMissVer13 |
| 93 | return OFTableFeaturePropWriteSetfieldMissVer13.READER.readFrom(bb); |
| 94 | default: |
| 95 | throw new OFParseError("Unknown value for discriminator type of class OFTableFeaturePropVer13: " + type); |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | } |