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