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_factory_class.java |
| 8 | // Do not modify |
| 9 | |
| 10 | package org.projectfloodlight.openflow.protocol.ver12; |
| 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 java.util.Set; |
| 27 | |
| 28 | |
| 29 | public class OFActionsVer12 implements OFActions { |
| 30 | public final static OFActionsVer12 INSTANCE = new OFActionsVer12(); |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | public OFActionBsnChecksum.Builder buildBsnChecksum() { |
| 36 | return new OFActionBsnChecksumVer12.Builder(); |
| 37 | } |
| 38 | public OFActionBsnChecksum bsnChecksum(U128 checksum) { |
| 39 | return new OFActionBsnChecksumVer12( |
| 40 | checksum |
| 41 | ); |
| 42 | } |
| 43 | |
| 44 | public OFActionBsnMirror.Builder buildBsnMirror() { |
| 45 | return new OFActionBsnMirrorVer12.Builder(); |
| 46 | } |
| 47 | |
| 48 | public OFActionBsnSetTunnelDst.Builder buildBsnSetTunnelDst() { |
| 49 | return new OFActionBsnSetTunnelDstVer12.Builder(); |
| 50 | } |
| 51 | public OFActionBsnSetTunnelDst bsnSetTunnelDst(long dst) { |
| 52 | return new OFActionBsnSetTunnelDstVer12( |
| 53 | dst |
| 54 | ); |
| 55 | } |
| 56 | |
| 57 | public OFActionEnqueue.Builder buildEnqueue() { |
| 58 | throw new UnsupportedOperationException("OFActionEnqueue not supported in version 1.2"); |
| 59 | } |
| 60 | public OFActionEnqueue enqueue(OFPort port, long queueId) { |
| 61 | throw new UnsupportedOperationException("OFActionEnqueue not supported in version 1.2"); |
| 62 | } |
| 63 | |
| 64 | public OFActionNiciraDecTtl niciraDecTtl() { |
| 65 | return OFActionNiciraDecTtlVer12.INSTANCE; |
| 66 | } |
| 67 | |
| 68 | public OFActionOutput.Builder buildOutput() { |
| 69 | return new OFActionOutputVer12.Builder(); |
| 70 | } |
| 71 | public OFActionOutput output(OFPort port, int maxLen) { |
| 72 | return new OFActionOutputVer12( |
| 73 | port, |
| 74 | maxLen |
| 75 | ); |
| 76 | } |
| 77 | |
| 78 | public OFActionSetDlDst.Builder buildSetDlDst() { |
| 79 | throw new UnsupportedOperationException("OFActionSetDlDst not supported in version 1.2"); |
| 80 | } |
| 81 | public OFActionSetDlDst setDlDst(MacAddress dlAddr) { |
| 82 | throw new UnsupportedOperationException("OFActionSetDlDst not supported in version 1.2"); |
| 83 | } |
| 84 | |
| 85 | public OFActionSetDlSrc.Builder buildSetDlSrc() { |
| 86 | throw new UnsupportedOperationException("OFActionSetDlSrc not supported in version 1.2"); |
| 87 | } |
| 88 | public OFActionSetDlSrc setDlSrc(MacAddress dlAddr) { |
| 89 | throw new UnsupportedOperationException("OFActionSetDlSrc not supported in version 1.2"); |
| 90 | } |
| 91 | |
| 92 | public OFActionSetNwDst.Builder buildSetNwDst() { |
| 93 | throw new UnsupportedOperationException("OFActionSetNwDst not supported in version 1.2"); |
| 94 | } |
| 95 | public OFActionSetNwDst setNwDst(IPv4Address nwAddr) { |
| 96 | throw new UnsupportedOperationException("OFActionSetNwDst not supported in version 1.2"); |
| 97 | } |
| 98 | |
| 99 | public OFActionSetNwSrc.Builder buildSetNwSrc() { |
| 100 | throw new UnsupportedOperationException("OFActionSetNwSrc not supported in version 1.2"); |
| 101 | } |
| 102 | public OFActionSetNwSrc setNwSrc(IPv4Address nwAddr) { |
| 103 | throw new UnsupportedOperationException("OFActionSetNwSrc not supported in version 1.2"); |
| 104 | } |
| 105 | |
| 106 | public OFActionSetNwTos.Builder buildSetNwTos() { |
| 107 | throw new UnsupportedOperationException("OFActionSetNwTos not supported in version 1.2"); |
| 108 | } |
| 109 | public OFActionSetNwTos setNwTos(short nwTos) { |
| 110 | throw new UnsupportedOperationException("OFActionSetNwTos not supported in version 1.2"); |
| 111 | } |
| 112 | |
| 113 | public OFActionSetTpDst.Builder buildSetTpDst() { |
| 114 | throw new UnsupportedOperationException("OFActionSetTpDst not supported in version 1.2"); |
| 115 | } |
| 116 | public OFActionSetTpDst setTpDst(TransportPort tpPort) { |
| 117 | throw new UnsupportedOperationException("OFActionSetTpDst not supported in version 1.2"); |
| 118 | } |
| 119 | |
| 120 | public OFActionSetTpSrc.Builder buildSetTpSrc() { |
| 121 | throw new UnsupportedOperationException("OFActionSetTpSrc not supported in version 1.2"); |
| 122 | } |
| 123 | public OFActionSetTpSrc setTpSrc(TransportPort tpPort) { |
| 124 | throw new UnsupportedOperationException("OFActionSetTpSrc not supported in version 1.2"); |
| 125 | } |
| 126 | |
| 127 | public OFActionSetVlanPcp.Builder buildSetVlanPcp() { |
| 128 | throw new UnsupportedOperationException("OFActionSetVlanPcp not supported in version 1.2"); |
| 129 | } |
| 130 | public OFActionSetVlanPcp setVlanPcp(VlanPcp vlanPcp) { |
| 131 | throw new UnsupportedOperationException("OFActionSetVlanPcp not supported in version 1.2"); |
| 132 | } |
| 133 | |
| 134 | public OFActionSetVlanVid.Builder buildSetVlanVid() { |
| 135 | throw new UnsupportedOperationException("OFActionSetVlanVid not supported in version 1.2"); |
| 136 | } |
| 137 | public OFActionSetVlanVid setVlanVid(VlanVid vlanVid) { |
| 138 | throw new UnsupportedOperationException("OFActionSetVlanVid not supported in version 1.2"); |
| 139 | } |
| 140 | |
| 141 | public OFActionStripVlan stripVlan() { |
| 142 | throw new UnsupportedOperationException("OFActionStripVlan not supported in version 1.2"); |
| 143 | } |
| 144 | |
| 145 | public OFActionCopyTtlIn copyTtlIn() { |
| 146 | return OFActionCopyTtlInVer12.INSTANCE; |
| 147 | } |
| 148 | |
| 149 | public OFActionCopyTtlOut copyTtlOut() { |
| 150 | return OFActionCopyTtlOutVer12.INSTANCE; |
| 151 | } |
| 152 | |
| 153 | public OFActionDecMplsTtl decMplsTtl() { |
| 154 | return OFActionDecMplsTtlVer12.INSTANCE; |
| 155 | } |
| 156 | |
| 157 | public OFActionDecNwTtl decNwTtl() { |
| 158 | return OFActionDecNwTtlVer12.INSTANCE; |
| 159 | } |
| 160 | |
| 161 | public OFActionGroup.Builder buildGroup() { |
| 162 | return new OFActionGroupVer12.Builder(); |
| 163 | } |
| 164 | public OFActionGroup group(OFGroup group) { |
| 165 | return new OFActionGroupVer12( |
| 166 | group |
| 167 | ); |
| 168 | } |
| 169 | |
| 170 | public OFActionPopMpls.Builder buildPopMpls() { |
| 171 | return new OFActionPopMplsVer12.Builder(); |
| 172 | } |
| 173 | public OFActionPopMpls popMpls(EthType ethertype) { |
| 174 | return new OFActionPopMplsVer12( |
| 175 | ethertype |
| 176 | ); |
| 177 | } |
| 178 | |
| 179 | public OFActionPopVlan popVlan() { |
| 180 | return OFActionPopVlanVer12.INSTANCE; |
| 181 | } |
| 182 | |
| 183 | public OFActionPushMpls.Builder buildPushMpls() { |
| 184 | return new OFActionPushMplsVer12.Builder(); |
| 185 | } |
| 186 | public OFActionPushMpls pushMpls(EthType ethertype) { |
| 187 | return new OFActionPushMplsVer12( |
| 188 | ethertype |
| 189 | ); |
| 190 | } |
| 191 | |
| 192 | public OFActionPushVlan.Builder buildPushVlan() { |
| 193 | return new OFActionPushVlanVer12.Builder(); |
| 194 | } |
| 195 | public OFActionPushVlan pushVlan(EthType ethertype) { |
| 196 | return new OFActionPushVlanVer12( |
| 197 | ethertype |
| 198 | ); |
| 199 | } |
| 200 | |
| 201 | public OFActionSetMplsLabel.Builder buildSetMplsLabel() { |
| 202 | throw new UnsupportedOperationException("OFActionSetMplsLabel not supported in version 1.2"); |
| 203 | } |
| 204 | public OFActionSetMplsLabel setMplsLabel(long mplsLabel) { |
| 205 | throw new UnsupportedOperationException("OFActionSetMplsLabel not supported in version 1.2"); |
| 206 | } |
| 207 | |
| 208 | public OFActionSetMplsTc.Builder buildSetMplsTc() { |
| 209 | throw new UnsupportedOperationException("OFActionSetMplsTc not supported in version 1.2"); |
| 210 | } |
| 211 | public OFActionSetMplsTc setMplsTc(short mplsTc) { |
| 212 | throw new UnsupportedOperationException("OFActionSetMplsTc not supported in version 1.2"); |
| 213 | } |
| 214 | |
| 215 | public OFActionSetMplsTtl.Builder buildSetMplsTtl() { |
| 216 | return new OFActionSetMplsTtlVer12.Builder(); |
| 217 | } |
| 218 | public OFActionSetMplsTtl setMplsTtl(short mplsTtl) { |
| 219 | return new OFActionSetMplsTtlVer12( |
| 220 | mplsTtl |
| 221 | ); |
| 222 | } |
| 223 | |
| 224 | public OFActionSetNwEcn.Builder buildSetNwEcn() { |
| 225 | throw new UnsupportedOperationException("OFActionSetNwEcn not supported in version 1.2"); |
| 226 | } |
| 227 | public OFActionSetNwEcn setNwEcn(IpEcn nwEcn) { |
| 228 | throw new UnsupportedOperationException("OFActionSetNwEcn not supported in version 1.2"); |
| 229 | } |
| 230 | |
| 231 | public OFActionSetNwTtl.Builder buildSetNwTtl() { |
| 232 | return new OFActionSetNwTtlVer12.Builder(); |
| 233 | } |
| 234 | public OFActionSetNwTtl setNwTtl(short nwTtl) { |
| 235 | return new OFActionSetNwTtlVer12( |
| 236 | nwTtl |
| 237 | ); |
| 238 | } |
| 239 | |
| 240 | public OFActionSetQueue.Builder buildSetQueue() { |
| 241 | return new OFActionSetQueueVer12.Builder(); |
| 242 | } |
| 243 | public OFActionSetQueue setQueue(long queueId) { |
| 244 | return new OFActionSetQueueVer12( |
| 245 | queueId |
| 246 | ); |
| 247 | } |
| 248 | |
| 249 | public OFActionSetField.Builder buildSetField() { |
| 250 | return new OFActionSetFieldVer12.Builder(); |
| 251 | } |
| 252 | public OFActionSetField setField(OFOxm<?> field) { |
| 253 | return new OFActionSetFieldVer12( |
| 254 | field |
| 255 | ); |
| 256 | } |
| 257 | |
| 258 | public OFActionPopPbb popPbb() { |
| 259 | throw new UnsupportedOperationException("OFActionPopPbb not supported in version 1.2"); |
| 260 | } |
| 261 | |
| 262 | public OFActionPushPbb.Builder buildPushPbb() { |
| 263 | throw new UnsupportedOperationException("OFActionPushPbb not supported in version 1.2"); |
| 264 | } |
| 265 | public OFActionPushPbb pushPbb(EthType ethertype) { |
| 266 | throw new UnsupportedOperationException("OFActionPushPbb not supported in version 1.2"); |
| 267 | } |
| 268 | |
| 269 | public OFMessageReader<OFAction> getReader() { |
| 270 | return OFActionVer12.READER; |
| 271 | } |
| 272 | |
| 273 | |
| 274 | public OFVersion getVersion() { |
| 275 | return OFVersion.OF_12; |
| 276 | } |
| 277 | } |