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.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 java.util.Set; |
| 27 | import java.util.List; |
| 28 | import org.projectfloodlight.openflow.protocol.OFOxmList; |
| 29 | |
| 30 | |
| 31 | public class OFFactoryVer13 implements OFFactory { |
| 32 | public final static OFFactoryVer13 INSTANCE = new OFFactoryVer13(); |
| 33 | |
| 34 | private final XidGenerator xidGenerator = XidGenerators.global(); |
| 35 | |
| 36 | public OFActions actions() { |
| 37 | return OFActionsVer13.INSTANCE; |
| 38 | } |
| 39 | public OFInstructions instructions() { |
| 40 | return OFInstructionsVer13.INSTANCE; |
| 41 | } |
| 42 | public OFMeterBands meterBands() { |
| 43 | return OFMeterBandsVer13.INSTANCE; |
| 44 | } |
| 45 | public OFOxms oxms() { |
| 46 | return OFOxmsVer13.INSTANCE; |
| 47 | } |
| 48 | public OFQueueProps queueProps() { |
| 49 | return OFQueuePropsVer13.INSTANCE; |
| 50 | } |
| 51 | public OFErrorMsgs errorMsgs() { |
| 52 | return OFErrorMsgsVer13.INSTANCE; |
| 53 | } |
| 54 | public OFActionIds actionIds() { |
| 55 | return OFActionIdsVer13.INSTANCE; |
| 56 | } |
| 57 | public OFInstructionIds instructionIds() { |
| 58 | return OFInstructionIdsVer13.INSTANCE; |
| 59 | } |
| 60 | public OFBsnTlvs bsnTlvs() { |
| 61 | return OFBsnTlvsVer13.INSTANCE; |
| 62 | } |
| 63 | |
| 64 | |
| 65 | public OFAggregateStatsReply.Builder buildAggregateStatsReply() { |
| 66 | return new OFAggregateStatsReplyVer13.Builder().setXid(nextXid()); |
| 67 | } |
| 68 | |
| 69 | public OFAggregateStatsRequest.Builder buildAggregateStatsRequest() { |
| 70 | return new OFAggregateStatsRequestVer13.Builder().setXid(nextXid()); |
| 71 | } |
| 72 | |
| 73 | public OFBarrierReply.Builder buildBarrierReply() { |
| 74 | return new OFBarrierReplyVer13.Builder().setXid(nextXid()); |
| 75 | } |
| 76 | public OFBarrierReply barrierReply() { |
| 77 | return new OFBarrierReplyVer13( |
| 78 | nextXid() |
| 79 | ); |
| 80 | } |
| 81 | |
| 82 | public OFBarrierRequest.Builder buildBarrierRequest() { |
| 83 | return new OFBarrierRequestVer13.Builder().setXid(nextXid()); |
| 84 | } |
| 85 | public OFBarrierRequest barrierRequest() { |
| 86 | return new OFBarrierRequestVer13( |
| 87 | nextXid() |
| 88 | ); |
| 89 | } |
| 90 | |
| 91 | public OFBsnBwClearDataReply.Builder buildBsnBwClearDataReply() { |
| 92 | return new OFBsnBwClearDataReplyVer13.Builder().setXid(nextXid()); |
| 93 | } |
| 94 | public OFBsnBwClearDataReply bsnBwClearDataReply(long status) { |
| 95 | return new OFBsnBwClearDataReplyVer13( |
| 96 | nextXid(), |
| 97 | status |
| 98 | ); |
| 99 | } |
| 100 | |
| 101 | public OFBsnBwClearDataRequest.Builder buildBsnBwClearDataRequest() { |
| 102 | return new OFBsnBwClearDataRequestVer13.Builder().setXid(nextXid()); |
| 103 | } |
| 104 | public OFBsnBwClearDataRequest bsnBwClearDataRequest() { |
| 105 | return new OFBsnBwClearDataRequestVer13( |
| 106 | nextXid() |
| 107 | ); |
| 108 | } |
| 109 | |
| 110 | public OFBsnBwEnableGetReply.Builder buildBsnBwEnableGetReply() { |
| 111 | return new OFBsnBwEnableGetReplyVer13.Builder().setXid(nextXid()); |
| 112 | } |
| 113 | public OFBsnBwEnableGetReply bsnBwEnableGetReply(long enabled) { |
| 114 | return new OFBsnBwEnableGetReplyVer13( |
| 115 | nextXid(), |
| 116 | enabled |
| 117 | ); |
| 118 | } |
| 119 | |
| 120 | public OFBsnBwEnableGetRequest.Builder buildBsnBwEnableGetRequest() { |
| 121 | return new OFBsnBwEnableGetRequestVer13.Builder().setXid(nextXid()); |
| 122 | } |
| 123 | public OFBsnBwEnableGetRequest bsnBwEnableGetRequest() { |
| 124 | return new OFBsnBwEnableGetRequestVer13( |
| 125 | nextXid() |
| 126 | ); |
| 127 | } |
| 128 | |
| 129 | public OFBsnBwEnableSetReply.Builder buildBsnBwEnableSetReply() { |
| 130 | return new OFBsnBwEnableSetReplyVer13.Builder().setXid(nextXid()); |
| 131 | } |
| 132 | |
| 133 | public OFBsnBwEnableSetRequest.Builder buildBsnBwEnableSetRequest() { |
| 134 | return new OFBsnBwEnableSetRequestVer13.Builder().setXid(nextXid()); |
| 135 | } |
| 136 | public OFBsnBwEnableSetRequest bsnBwEnableSetRequest(long enable) { |
| 137 | return new OFBsnBwEnableSetRequestVer13( |
| 138 | nextXid(), |
| 139 | enable |
| 140 | ); |
| 141 | } |
| 142 | |
| 143 | public OFBsnGetInterfacesReply.Builder buildBsnGetInterfacesReply() { |
| 144 | return new OFBsnGetInterfacesReplyVer13.Builder().setXid(nextXid()); |
| 145 | } |
| 146 | public OFBsnGetInterfacesReply bsnGetInterfacesReply(List<OFBsnInterface> interfaces) { |
| 147 | return new OFBsnGetInterfacesReplyVer13( |
| 148 | nextXid(), |
| 149 | interfaces |
| 150 | ); |
| 151 | } |
| 152 | |
| 153 | public OFBsnGetInterfacesRequest.Builder buildBsnGetInterfacesRequest() { |
| 154 | return new OFBsnGetInterfacesRequestVer13.Builder().setXid(nextXid()); |
| 155 | } |
| 156 | public OFBsnGetInterfacesRequest bsnGetInterfacesRequest() { |
| 157 | return new OFBsnGetInterfacesRequestVer13( |
| 158 | nextXid() |
| 159 | ); |
| 160 | } |
| 161 | |
| 162 | public OFBsnGetIpMaskReply.Builder buildBsnGetIpMaskReply() { |
| 163 | throw new UnsupportedOperationException("OFBsnGetIpMaskReply not supported in version 1.3"); |
| 164 | } |
| 165 | |
| 166 | public OFBsnGetIpMaskRequest.Builder buildBsnGetIpMaskRequest() { |
| 167 | throw new UnsupportedOperationException("OFBsnGetIpMaskRequest not supported in version 1.3"); |
| 168 | } |
| 169 | public OFBsnGetIpMaskRequest bsnGetIpMaskRequest(short index) { |
| 170 | throw new UnsupportedOperationException("OFBsnGetIpMaskRequest not supported in version 1.3"); |
| 171 | } |
| 172 | |
| 173 | public OFBsnGetL2TableReply.Builder buildBsnGetL2TableReply() { |
| 174 | throw new UnsupportedOperationException("OFBsnGetL2TableReply not supported in version 1.3"); |
| 175 | } |
| 176 | |
| 177 | public OFBsnGetL2TableRequest.Builder buildBsnGetL2TableRequest() { |
| 178 | throw new UnsupportedOperationException("OFBsnGetL2TableRequest not supported in version 1.3"); |
| 179 | } |
| 180 | public OFBsnGetL2TableRequest bsnGetL2TableRequest() { |
| 181 | throw new UnsupportedOperationException("OFBsnGetL2TableRequest not supported in version 1.3"); |
| 182 | } |
| 183 | |
| 184 | public OFBsnGetMirroringReply.Builder buildBsnGetMirroringReply() { |
| 185 | return new OFBsnGetMirroringReplyVer13.Builder().setXid(nextXid()); |
| 186 | } |
| 187 | public OFBsnGetMirroringReply bsnGetMirroringReply(short reportMirrorPorts) { |
| 188 | return new OFBsnGetMirroringReplyVer13( |
| 189 | nextXid(), |
| 190 | reportMirrorPorts |
| 191 | ); |
| 192 | } |
| 193 | |
| 194 | public OFBsnGetMirroringRequest.Builder buildBsnGetMirroringRequest() { |
| 195 | return new OFBsnGetMirroringRequestVer13.Builder().setXid(nextXid()); |
| 196 | } |
| 197 | public OFBsnGetMirroringRequest bsnGetMirroringRequest(short reportMirrorPorts) { |
| 198 | return new OFBsnGetMirroringRequestVer13( |
| 199 | nextXid(), |
| 200 | reportMirrorPorts |
| 201 | ); |
| 202 | } |
| 203 | |
| 204 | public OFBsnHybridGetReply.Builder buildBsnHybridGetReply() { |
| 205 | throw new UnsupportedOperationException("OFBsnHybridGetReply not supported in version 1.3"); |
| 206 | } |
| 207 | |
| 208 | public OFBsnHybridGetRequest.Builder buildBsnHybridGetRequest() { |
| 209 | throw new UnsupportedOperationException("OFBsnHybridGetRequest not supported in version 1.3"); |
| 210 | } |
| 211 | public OFBsnHybridGetRequest bsnHybridGetRequest() { |
| 212 | throw new UnsupportedOperationException("OFBsnHybridGetRequest not supported in version 1.3"); |
| 213 | } |
| 214 | |
| 215 | public OFBsnInterface.Builder buildBsnInterface() { |
| 216 | return new OFBsnInterfaceVer13.Builder(); |
| 217 | } |
| 218 | |
| 219 | public OFBsnPduRxReply.Builder buildBsnPduRxReply() { |
| 220 | return new OFBsnPduRxReplyVer13.Builder().setXid(nextXid()); |
| 221 | } |
| 222 | |
| 223 | public OFBsnPduRxRequest.Builder buildBsnPduRxRequest() { |
| 224 | return new OFBsnPduRxRequestVer13.Builder().setXid(nextXid()); |
| 225 | } |
| 226 | |
| 227 | public OFBsnPduRxTimeout.Builder buildBsnPduRxTimeout() { |
| 228 | return new OFBsnPduRxTimeoutVer13.Builder().setXid(nextXid()); |
| 229 | } |
| 230 | |
| 231 | public OFBsnPduTxReply.Builder buildBsnPduTxReply() { |
| 232 | return new OFBsnPduTxReplyVer13.Builder().setXid(nextXid()); |
| 233 | } |
| 234 | |
| 235 | public OFBsnPduTxRequest.Builder buildBsnPduTxRequest() { |
| 236 | return new OFBsnPduTxRequestVer13.Builder().setXid(nextXid()); |
| 237 | } |
| 238 | |
| 239 | public OFBsnSetIpMask.Builder buildBsnSetIpMask() { |
| 240 | throw new UnsupportedOperationException("OFBsnSetIpMask not supported in version 1.3"); |
| 241 | } |
| 242 | |
| 243 | public OFBsnSetL2TableReply.Builder buildBsnSetL2TableReply() { |
| 244 | throw new UnsupportedOperationException("OFBsnSetL2TableReply not supported in version 1.3"); |
| 245 | } |
| 246 | |
| 247 | public OFBsnSetL2TableRequest.Builder buildBsnSetL2TableRequest() { |
| 248 | throw new UnsupportedOperationException("OFBsnSetL2TableRequest not supported in version 1.3"); |
| 249 | } |
| 250 | |
| 251 | public OFBsnSetMirroring.Builder buildBsnSetMirroring() { |
| 252 | return new OFBsnSetMirroringVer13.Builder().setXid(nextXid()); |
| 253 | } |
| 254 | public OFBsnSetMirroring bsnSetMirroring(short reportMirrorPorts) { |
| 255 | return new OFBsnSetMirroringVer13( |
| 256 | nextXid(), |
| 257 | reportMirrorPorts |
| 258 | ); |
| 259 | } |
| 260 | |
| 261 | public OFBsnSetPktinSuppressionReply.Builder buildBsnSetPktinSuppressionReply() { |
| 262 | return new OFBsnSetPktinSuppressionReplyVer13.Builder().setXid(nextXid()); |
| 263 | } |
| 264 | public OFBsnSetPktinSuppressionReply bsnSetPktinSuppressionReply(long status) { |
| 265 | return new OFBsnSetPktinSuppressionReplyVer13( |
| 266 | nextXid(), |
| 267 | status |
| 268 | ); |
| 269 | } |
| 270 | |
| 271 | public OFBsnSetPktinSuppressionRequest.Builder buildBsnSetPktinSuppressionRequest() { |
| 272 | return new OFBsnSetPktinSuppressionRequestVer13.Builder().setXid(nextXid()); |
| 273 | } |
| 274 | |
| 275 | public OFBsnShellCommand.Builder buildBsnShellCommand() { |
| 276 | throw new UnsupportedOperationException("OFBsnShellCommand not supported in version 1.3"); |
| 277 | } |
| 278 | |
| 279 | public OFBsnShellOutput.Builder buildBsnShellOutput() { |
| 280 | throw new UnsupportedOperationException("OFBsnShellOutput not supported in version 1.3"); |
| 281 | } |
| 282 | public OFBsnShellOutput bsnShellOutput(byte[] data) { |
| 283 | throw new UnsupportedOperationException("OFBsnShellOutput not supported in version 1.3"); |
| 284 | } |
| 285 | |
| 286 | public OFBsnShellStatus.Builder buildBsnShellStatus() { |
| 287 | throw new UnsupportedOperationException("OFBsnShellStatus not supported in version 1.3"); |
| 288 | } |
| 289 | public OFBsnShellStatus bsnShellStatus(long status) { |
| 290 | throw new UnsupportedOperationException("OFBsnShellStatus not supported in version 1.3"); |
| 291 | } |
| 292 | |
| 293 | public OFBsnVirtualPortCreateReply.Builder buildBsnVirtualPortCreateReply() { |
| 294 | return new OFBsnVirtualPortCreateReplyVer13.Builder().setXid(nextXid()); |
| 295 | } |
| 296 | |
| 297 | public OFBsnVirtualPortCreateRequest.Builder buildBsnVirtualPortCreateRequest() { |
| 298 | return new OFBsnVirtualPortCreateRequestVer13.Builder().setXid(nextXid()); |
| 299 | } |
| 300 | public OFBsnVirtualPortCreateRequest bsnVirtualPortCreateRequest(OFBsnVport vport) { |
| 301 | return new OFBsnVirtualPortCreateRequestVer13( |
| 302 | nextXid(), |
| 303 | vport |
| 304 | ); |
| 305 | } |
| 306 | |
| 307 | public OFBsnVirtualPortRemoveReply.Builder buildBsnVirtualPortRemoveReply() { |
| 308 | return new OFBsnVirtualPortRemoveReplyVer13.Builder().setXid(nextXid()); |
| 309 | } |
| 310 | public OFBsnVirtualPortRemoveReply bsnVirtualPortRemoveReply(long status) { |
| 311 | return new OFBsnVirtualPortRemoveReplyVer13( |
| 312 | nextXid(), |
| 313 | status |
| 314 | ); |
| 315 | } |
| 316 | |
| 317 | public OFBsnVirtualPortRemoveRequest.Builder buildBsnVirtualPortRemoveRequest() { |
| 318 | return new OFBsnVirtualPortRemoveRequestVer13.Builder().setXid(nextXid()); |
| 319 | } |
| 320 | public OFBsnVirtualPortRemoveRequest bsnVirtualPortRemoveRequest(long vportNo) { |
| 321 | return new OFBsnVirtualPortRemoveRequestVer13( |
| 322 | nextXid(), |
| 323 | vportNo |
| 324 | ); |
| 325 | } |
| 326 | |
| 327 | public OFBsnVportL2Gre.Builder buildBsnVportL2Gre() { |
| 328 | return new OFBsnVportL2GreVer13.Builder(); |
| 329 | } |
| 330 | |
| 331 | public OFBsnVportQInQ.Builder buildBsnVportQInQ() { |
| 332 | return new OFBsnVportQInQVer13.Builder(); |
| 333 | } |
| 334 | |
| 335 | public OFDescStatsReply.Builder buildDescStatsReply() { |
| 336 | return new OFDescStatsReplyVer13.Builder().setXid(nextXid()); |
| 337 | } |
| 338 | |
| 339 | public OFDescStatsRequest.Builder buildDescStatsRequest() { |
| 340 | return new OFDescStatsRequestVer13.Builder().setXid(nextXid()); |
| 341 | } |
| 342 | public OFDescStatsRequest descStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 343 | return new OFDescStatsRequestVer13( |
| 344 | nextXid(), |
| 345 | flags |
| 346 | ); |
| 347 | } |
| 348 | |
| 349 | public OFEchoReply.Builder buildEchoReply() { |
| 350 | return new OFEchoReplyVer13.Builder().setXid(nextXid()); |
| 351 | } |
| 352 | public OFEchoReply echoReply(byte[] data) { |
| 353 | return new OFEchoReplyVer13( |
| 354 | nextXid(), |
| 355 | data |
| 356 | ); |
| 357 | } |
| 358 | |
| 359 | public OFEchoRequest.Builder buildEchoRequest() { |
| 360 | return new OFEchoRequestVer13.Builder().setXid(nextXid()); |
| 361 | } |
| 362 | public OFEchoRequest echoRequest(byte[] data) { |
| 363 | return new OFEchoRequestVer13( |
| 364 | nextXid(), |
| 365 | data |
| 366 | ); |
| 367 | } |
| 368 | |
| 369 | public OFFeaturesReply.Builder buildFeaturesReply() { |
| 370 | return new OFFeaturesReplyVer13.Builder().setXid(nextXid()); |
| 371 | } |
| 372 | |
| 373 | public OFFeaturesRequest.Builder buildFeaturesRequest() { |
| 374 | return new OFFeaturesRequestVer13.Builder().setXid(nextXid()); |
| 375 | } |
| 376 | public OFFeaturesRequest featuresRequest() { |
| 377 | return new OFFeaturesRequestVer13( |
| 378 | nextXid() |
| 379 | ); |
| 380 | } |
| 381 | |
| 382 | public OFFlowAdd.Builder buildFlowAdd() { |
| 383 | return new OFFlowAddVer13.Builder().setXid(nextXid()); |
| 384 | } |
| 385 | |
| 386 | public OFFlowDelete.Builder buildFlowDelete() { |
| 387 | return new OFFlowDeleteVer13.Builder().setXid(nextXid()); |
| 388 | } |
| 389 | |
| 390 | public OFFlowDeleteStrict.Builder buildFlowDeleteStrict() { |
| 391 | return new OFFlowDeleteStrictVer13.Builder().setXid(nextXid()); |
| 392 | } |
| 393 | |
| 394 | public OFFlowModify.Builder buildFlowModify() { |
| 395 | return new OFFlowModifyVer13.Builder().setXid(nextXid()); |
| 396 | } |
| 397 | |
| 398 | public OFFlowModifyStrict.Builder buildFlowModifyStrict() { |
| 399 | return new OFFlowModifyStrictVer13.Builder().setXid(nextXid()); |
| 400 | } |
| 401 | |
| 402 | public OFFlowRemoved.Builder buildFlowRemoved() { |
| 403 | return new OFFlowRemovedVer13.Builder().setXid(nextXid()); |
| 404 | } |
| 405 | |
| 406 | public OFFlowStatsEntry.Builder buildFlowStatsEntry() { |
| 407 | return new OFFlowStatsEntryVer13.Builder(); |
| 408 | } |
| 409 | |
| 410 | public OFFlowStatsReply.Builder buildFlowStatsReply() { |
| 411 | return new OFFlowStatsReplyVer13.Builder().setXid(nextXid()); |
| 412 | } |
| 413 | |
| 414 | public OFFlowStatsRequest.Builder buildFlowStatsRequest() { |
| 415 | return new OFFlowStatsRequestVer13.Builder().setXid(nextXid()); |
| 416 | } |
| 417 | |
| 418 | public OFGetConfigReply.Builder buildGetConfigReply() { |
| 419 | return new OFGetConfigReplyVer13.Builder().setXid(nextXid()); |
| 420 | } |
| 421 | |
| 422 | public OFGetConfigRequest.Builder buildGetConfigRequest() { |
| 423 | return new OFGetConfigRequestVer13.Builder().setXid(nextXid()); |
| 424 | } |
| 425 | public OFGetConfigRequest getConfigRequest() { |
| 426 | return new OFGetConfigRequestVer13( |
| 427 | nextXid() |
| 428 | ); |
| 429 | } |
| 430 | |
| 431 | public OFHello.Builder buildHello() { |
| 432 | return new OFHelloVer13.Builder().setXid(nextXid()); |
| 433 | } |
| 434 | public OFHello hello(List<OFHelloElem> elements) { |
| 435 | return new OFHelloVer13( |
| 436 | nextXid(), |
| 437 | elements |
| 438 | ); |
| 439 | } |
| 440 | |
| 441 | public OFMatchV1.Builder buildMatchV1() { |
| 442 | throw new UnsupportedOperationException("OFMatchV1 not supported in version 1.3"); |
| 443 | } |
| 444 | |
| 445 | public OFNiciraControllerRoleReply.Builder buildNiciraControllerRoleReply() { |
| 446 | throw new UnsupportedOperationException("OFNiciraControllerRoleReply not supported in version 1.3"); |
| 447 | } |
| 448 | public OFNiciraControllerRoleReply niciraControllerRoleReply(OFNiciraControllerRole role) { |
| 449 | throw new UnsupportedOperationException("OFNiciraControllerRoleReply not supported in version 1.3"); |
| 450 | } |
| 451 | |
| 452 | public OFNiciraControllerRoleRequest.Builder buildNiciraControllerRoleRequest() { |
| 453 | throw new UnsupportedOperationException("OFNiciraControllerRoleRequest not supported in version 1.3"); |
| 454 | } |
| 455 | public OFNiciraControllerRoleRequest niciraControllerRoleRequest(OFNiciraControllerRole role) { |
| 456 | throw new UnsupportedOperationException("OFNiciraControllerRoleRequest not supported in version 1.3"); |
| 457 | } |
| 458 | |
| 459 | public OFPacketIn.Builder buildPacketIn() { |
| 460 | return new OFPacketInVer13.Builder().setXid(nextXid()); |
| 461 | } |
| 462 | |
| 463 | public OFPacketOut.Builder buildPacketOut() { |
| 464 | return new OFPacketOutVer13.Builder().setXid(nextXid()); |
| 465 | } |
| 466 | |
| 467 | public OFPacketQueue.Builder buildPacketQueue() { |
| 468 | return new OFPacketQueueVer13.Builder(); |
| 469 | } |
| 470 | |
| 471 | public OFPortDesc.Builder buildPortDesc() { |
| 472 | return new OFPortDescVer13.Builder(); |
| 473 | } |
| 474 | |
| 475 | public OFPortMod.Builder buildPortMod() { |
| 476 | return new OFPortModVer13.Builder().setXid(nextXid()); |
| 477 | } |
| 478 | |
| 479 | public OFPortStatsEntry.Builder buildPortStatsEntry() { |
| 480 | return new OFPortStatsEntryVer13.Builder(); |
| 481 | } |
| 482 | |
| 483 | public OFPortStatsReply.Builder buildPortStatsReply() { |
| 484 | return new OFPortStatsReplyVer13.Builder().setXid(nextXid()); |
| 485 | } |
| 486 | |
| 487 | public OFPortStatsRequest.Builder buildPortStatsRequest() { |
| 488 | return new OFPortStatsRequestVer13.Builder().setXid(nextXid()); |
| 489 | } |
| 490 | |
| 491 | public OFPortStatus.Builder buildPortStatus() { |
| 492 | return new OFPortStatusVer13.Builder().setXid(nextXid()); |
| 493 | } |
| 494 | |
| 495 | public OFQueueGetConfigReply.Builder buildQueueGetConfigReply() { |
| 496 | return new OFQueueGetConfigReplyVer13.Builder().setXid(nextXid()); |
| 497 | } |
| 498 | |
| 499 | public OFQueueGetConfigRequest.Builder buildQueueGetConfigRequest() { |
| 500 | return new OFQueueGetConfigRequestVer13.Builder().setXid(nextXid()); |
| 501 | } |
| 502 | public OFQueueGetConfigRequest queueGetConfigRequest(OFPort port) { |
| 503 | return new OFQueueGetConfigRequestVer13( |
| 504 | nextXid(), |
| 505 | port |
| 506 | ); |
| 507 | } |
| 508 | |
| 509 | public OFQueueStatsEntry.Builder buildQueueStatsEntry() { |
| 510 | return new OFQueueStatsEntryVer13.Builder(); |
| 511 | } |
| 512 | |
| 513 | public OFQueueStatsReply.Builder buildQueueStatsReply() { |
| 514 | return new OFQueueStatsReplyVer13.Builder().setXid(nextXid()); |
| 515 | } |
| 516 | |
| 517 | public OFQueueStatsRequest.Builder buildQueueStatsRequest() { |
| 518 | return new OFQueueStatsRequestVer13.Builder().setXid(nextXid()); |
| 519 | } |
| 520 | |
| 521 | public OFSetConfig.Builder buildSetConfig() { |
| 522 | return new OFSetConfigVer13.Builder().setXid(nextXid()); |
| 523 | } |
| 524 | |
| 525 | public OFTableMod.Builder buildTableMod() { |
| 526 | return new OFTableModVer13.Builder().setXid(nextXid()); |
| 527 | } |
| 528 | |
| 529 | public OFTableStatsEntry.Builder buildTableStatsEntry() { |
| 530 | return new OFTableStatsEntryVer13.Builder(); |
| 531 | } |
| 532 | |
| 533 | public OFTableStatsReply.Builder buildTableStatsReply() { |
| 534 | return new OFTableStatsReplyVer13.Builder().setXid(nextXid()); |
| 535 | } |
| 536 | |
| 537 | public OFTableStatsRequest.Builder buildTableStatsRequest() { |
| 538 | return new OFTableStatsRequestVer13.Builder().setXid(nextXid()); |
| 539 | } |
| 540 | public OFTableStatsRequest tableStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 541 | return new OFTableStatsRequestVer13( |
| 542 | nextXid(), |
| 543 | flags |
| 544 | ); |
| 545 | } |
| 546 | |
| 547 | public OFBucket.Builder buildBucket() { |
| 548 | return new OFBucketVer13.Builder(); |
| 549 | } |
| 550 | |
| 551 | public OFBucketCounter.Builder buildBucketCounter() { |
| 552 | return new OFBucketCounterVer13.Builder(); |
| 553 | } |
| 554 | public OFBucketCounter bucketCounter(U64 packetCount, U64 byteCount) { |
| 555 | return new OFBucketCounterVer13( |
| 556 | packetCount, |
| 557 | byteCount |
| 558 | ); |
| 559 | } |
| 560 | |
| 561 | public OFGroupAdd.Builder buildGroupAdd() { |
| 562 | return new OFGroupAddVer13.Builder().setXid(nextXid()); |
| 563 | } |
| 564 | |
| 565 | public OFGroupDelete.Builder buildGroupDelete() { |
| 566 | return new OFGroupDeleteVer13.Builder().setXid(nextXid()); |
| 567 | } |
| 568 | |
| 569 | public OFGroupDescStatsEntry.Builder buildGroupDescStatsEntry() { |
| 570 | return new OFGroupDescStatsEntryVer13.Builder(); |
| 571 | } |
| 572 | |
| 573 | public OFGroupDescStatsReply.Builder buildGroupDescStatsReply() { |
| 574 | return new OFGroupDescStatsReplyVer13.Builder().setXid(nextXid()); |
| 575 | } |
| 576 | |
| 577 | public OFGroupDescStatsRequest.Builder buildGroupDescStatsRequest() { |
| 578 | return new OFGroupDescStatsRequestVer13.Builder().setXid(nextXid()); |
| 579 | } |
| 580 | public OFGroupDescStatsRequest groupDescStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 581 | return new OFGroupDescStatsRequestVer13( |
| 582 | nextXid(), |
| 583 | flags |
| 584 | ); |
| 585 | } |
| 586 | |
| 587 | public OFGroupModify.Builder buildGroupModify() { |
| 588 | return new OFGroupModifyVer13.Builder().setXid(nextXid()); |
| 589 | } |
| 590 | |
| 591 | public OFGroupStatsEntry.Builder buildGroupStatsEntry() { |
| 592 | return new OFGroupStatsEntryVer13.Builder(); |
| 593 | } |
| 594 | |
| 595 | public OFGroupStatsReply.Builder buildGroupStatsReply() { |
| 596 | return new OFGroupStatsReplyVer13.Builder().setXid(nextXid()); |
| 597 | } |
| 598 | |
| 599 | public OFGroupStatsRequest.Builder buildGroupStatsRequest() { |
| 600 | return new OFGroupStatsRequestVer13.Builder().setXid(nextXid()); |
| 601 | } |
| 602 | |
| 603 | public OFMatchV2.Builder buildMatchV2() { |
| 604 | throw new UnsupportedOperationException("OFMatchV2 not supported in version 1.3"); |
| 605 | } |
| 606 | |
| 607 | public OFGroupFeaturesStatsReply.Builder buildGroupFeaturesStatsReply() { |
| 608 | return new OFGroupFeaturesStatsReplyVer13.Builder().setXid(nextXid()); |
| 609 | } |
| 610 | |
| 611 | public OFGroupFeaturesStatsRequest.Builder buildGroupFeaturesStatsRequest() { |
| 612 | return new OFGroupFeaturesStatsRequestVer13.Builder().setXid(nextXid()); |
| 613 | } |
| 614 | public OFGroupFeaturesStatsRequest groupFeaturesStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 615 | return new OFGroupFeaturesStatsRequestVer13( |
| 616 | nextXid(), |
| 617 | flags |
| 618 | ); |
| 619 | } |
| 620 | |
| 621 | public OFMatchV3.Builder buildMatchV3() { |
| 622 | return new OFMatchV3Ver13.Builder(); |
| 623 | } |
| 624 | public Match.Builder buildMatch() { |
| 625 | return new OFMatchV3Ver13.Builder(); |
| 626 | } |
| 627 | |
| 628 | final static Match MATCH_WILDCARD_ALL = OFMatchV3Ver13.DEFAULT; |
| 629 | |
| 630 | public Match matchWildcardAll() { |
| 631 | return MATCH_WILDCARD_ALL; |
| 632 | } |
| 633 | public OFMatchV3 matchV3(OFOxmList oxmList) { |
| 634 | return new OFMatchV3Ver13( |
| 635 | oxmList |
| 636 | ); |
| 637 | } |
| 638 | |
| 639 | public OFRoleReply.Builder buildRoleReply() { |
| 640 | return new OFRoleReplyVer13.Builder().setXid(nextXid()); |
| 641 | } |
| 642 | |
| 643 | public OFRoleRequest.Builder buildRoleRequest() { |
| 644 | return new OFRoleRequestVer13.Builder().setXid(nextXid()); |
| 645 | } |
| 646 | |
| 647 | public OFAsyncGetReply.Builder buildAsyncGetReply() { |
| 648 | return new OFAsyncGetReplyVer13.Builder().setXid(nextXid()); |
| 649 | } |
| 650 | |
| 651 | public OFAsyncGetRequest.Builder buildAsyncGetRequest() { |
| 652 | return new OFAsyncGetRequestVer13.Builder().setXid(nextXid()); |
| 653 | } |
| 654 | |
| 655 | public OFAsyncSet.Builder buildAsyncSet() { |
| 656 | return new OFAsyncSetVer13.Builder().setXid(nextXid()); |
| 657 | } |
| 658 | |
| 659 | public OFBsnArpIdle.Builder buildBsnArpIdle() { |
| 660 | return new OFBsnArpIdleVer13.Builder().setXid(nextXid()); |
| 661 | } |
| 662 | |
| 663 | public OFBsnControllerConnection.Builder buildBsnControllerConnection() { |
| 664 | return new OFBsnControllerConnectionVer13.Builder(); |
| 665 | } |
| 666 | |
| 667 | public OFBsnControllerConnectionsReply.Builder buildBsnControllerConnectionsReply() { |
| 668 | return new OFBsnControllerConnectionsReplyVer13.Builder().setXid(nextXid()); |
| 669 | } |
| 670 | public OFBsnControllerConnectionsReply bsnControllerConnectionsReply(List<OFBsnControllerConnection> connections) { |
| 671 | return new OFBsnControllerConnectionsReplyVer13( |
| 672 | nextXid(), |
| 673 | connections |
| 674 | ); |
| 675 | } |
| 676 | |
| 677 | public OFBsnControllerConnectionsRequest.Builder buildBsnControllerConnectionsRequest() { |
| 678 | return new OFBsnControllerConnectionsRequestVer13.Builder().setXid(nextXid()); |
| 679 | } |
| 680 | public OFBsnControllerConnectionsRequest bsnControllerConnectionsRequest() { |
| 681 | return new OFBsnControllerConnectionsRequestVer13( |
| 682 | nextXid() |
| 683 | ); |
| 684 | } |
| 685 | |
| 686 | public OFBsnDebugCounterDescStatsEntry.Builder buildBsnDebugCounterDescStatsEntry() { |
| 687 | return new OFBsnDebugCounterDescStatsEntryVer13.Builder(); |
| 688 | } |
| 689 | |
| 690 | public OFBsnDebugCounterDescStatsReply.Builder buildBsnDebugCounterDescStatsReply() { |
| 691 | return new OFBsnDebugCounterDescStatsReplyVer13.Builder().setXid(nextXid()); |
| 692 | } |
| 693 | |
| 694 | public OFBsnDebugCounterDescStatsRequest.Builder buildBsnDebugCounterDescStatsRequest() { |
| 695 | return new OFBsnDebugCounterDescStatsRequestVer13.Builder().setXid(nextXid()); |
| 696 | } |
| 697 | public OFBsnDebugCounterDescStatsRequest bsnDebugCounterDescStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 698 | return new OFBsnDebugCounterDescStatsRequestVer13( |
| 699 | nextXid(), |
| 700 | flags |
| 701 | ); |
| 702 | } |
| 703 | |
| 704 | public OFBsnDebugCounterStatsEntry.Builder buildBsnDebugCounterStatsEntry() { |
| 705 | return new OFBsnDebugCounterStatsEntryVer13.Builder(); |
| 706 | } |
| 707 | public OFBsnDebugCounterStatsEntry bsnDebugCounterStatsEntry(U64 counterId, U64 value) { |
| 708 | return new OFBsnDebugCounterStatsEntryVer13( |
| 709 | counterId, |
| 710 | value |
| 711 | ); |
| 712 | } |
| 713 | |
| 714 | public OFBsnDebugCounterStatsReply.Builder buildBsnDebugCounterStatsReply() { |
| 715 | return new OFBsnDebugCounterStatsReplyVer13.Builder().setXid(nextXid()); |
| 716 | } |
| 717 | |
| 718 | public OFBsnDebugCounterStatsRequest.Builder buildBsnDebugCounterStatsRequest() { |
| 719 | return new OFBsnDebugCounterStatsRequestVer13.Builder().setXid(nextXid()); |
| 720 | } |
| 721 | public OFBsnDebugCounterStatsRequest bsnDebugCounterStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 722 | return new OFBsnDebugCounterStatsRequestVer13( |
| 723 | nextXid(), |
| 724 | flags |
| 725 | ); |
| 726 | } |
| 727 | |
| 728 | public OFBsnFlowChecksumBucketStatsEntry.Builder buildBsnFlowChecksumBucketStatsEntry() { |
| 729 | return new OFBsnFlowChecksumBucketStatsEntryVer13.Builder(); |
| 730 | } |
| 731 | public OFBsnFlowChecksumBucketStatsEntry bsnFlowChecksumBucketStatsEntry(U64 checksum) { |
| 732 | return new OFBsnFlowChecksumBucketStatsEntryVer13( |
| 733 | checksum |
| 734 | ); |
| 735 | } |
| 736 | |
| 737 | public OFBsnFlowChecksumBucketStatsReply.Builder buildBsnFlowChecksumBucketStatsReply() { |
| 738 | return new OFBsnFlowChecksumBucketStatsReplyVer13.Builder().setXid(nextXid()); |
| 739 | } |
| 740 | |
| 741 | public OFBsnFlowChecksumBucketStatsRequest.Builder buildBsnFlowChecksumBucketStatsRequest() { |
| 742 | return new OFBsnFlowChecksumBucketStatsRequestVer13.Builder().setXid(nextXid()); |
| 743 | } |
| 744 | |
| 745 | public OFBsnFlowIdle.Builder buildBsnFlowIdle() { |
| 746 | return new OFBsnFlowIdleVer13.Builder().setXid(nextXid()); |
| 747 | } |
| 748 | |
| 749 | public OFBsnFlowIdleEnableGetReply.Builder buildBsnFlowIdleEnableGetReply() { |
| 750 | return new OFBsnFlowIdleEnableGetReplyVer13.Builder().setXid(nextXid()); |
| 751 | } |
| 752 | public OFBsnFlowIdleEnableGetReply bsnFlowIdleEnableGetReply(long enabled) { |
| 753 | return new OFBsnFlowIdleEnableGetReplyVer13( |
| 754 | nextXid(), |
| 755 | enabled |
| 756 | ); |
| 757 | } |
| 758 | |
| 759 | public OFBsnFlowIdleEnableGetRequest.Builder buildBsnFlowIdleEnableGetRequest() { |
| 760 | return new OFBsnFlowIdleEnableGetRequestVer13.Builder().setXid(nextXid()); |
| 761 | } |
| 762 | public OFBsnFlowIdleEnableGetRequest bsnFlowIdleEnableGetRequest() { |
| 763 | return new OFBsnFlowIdleEnableGetRequestVer13( |
| 764 | nextXid() |
| 765 | ); |
| 766 | } |
| 767 | |
| 768 | public OFBsnFlowIdleEnableSetReply.Builder buildBsnFlowIdleEnableSetReply() { |
| 769 | return new OFBsnFlowIdleEnableSetReplyVer13.Builder().setXid(nextXid()); |
| 770 | } |
| 771 | |
| 772 | public OFBsnFlowIdleEnableSetRequest.Builder buildBsnFlowIdleEnableSetRequest() { |
| 773 | return new OFBsnFlowIdleEnableSetRequestVer13.Builder().setXid(nextXid()); |
| 774 | } |
| 775 | public OFBsnFlowIdleEnableSetRequest bsnFlowIdleEnableSetRequest(long enable) { |
| 776 | return new OFBsnFlowIdleEnableSetRequestVer13( |
| 777 | nextXid(), |
| 778 | enable |
| 779 | ); |
| 780 | } |
| 781 | |
| 782 | public OFBsnGentableBucketStatsEntry.Builder buildBsnGentableBucketStatsEntry() { |
| 783 | return new OFBsnGentableBucketStatsEntryVer13.Builder(); |
| 784 | } |
| 785 | public OFBsnGentableBucketStatsEntry bsnGentableBucketStatsEntry(U128 checksum) { |
| 786 | return new OFBsnGentableBucketStatsEntryVer13( |
| 787 | checksum |
| 788 | ); |
| 789 | } |
| 790 | |
| 791 | public OFBsnGentableBucketStatsReply.Builder buildBsnGentableBucketStatsReply() { |
| 792 | return new OFBsnGentableBucketStatsReplyVer13.Builder().setXid(nextXid()); |
| 793 | } |
| 794 | |
| 795 | public OFBsnGentableBucketStatsRequest.Builder buildBsnGentableBucketStatsRequest() { |
| 796 | return new OFBsnGentableBucketStatsRequestVer13.Builder().setXid(nextXid()); |
| 797 | } |
| 798 | |
| 799 | public OFBsnGentableClearReply.Builder buildBsnGentableClearReply() { |
| 800 | return new OFBsnGentableClearReplyVer13.Builder().setXid(nextXid()); |
| 801 | } |
| 802 | |
| 803 | public OFBsnGentableClearRequest.Builder buildBsnGentableClearRequest() { |
| 804 | return new OFBsnGentableClearRequestVer13.Builder().setXid(nextXid()); |
| 805 | } |
| 806 | |
| 807 | public OFBsnGentableDescStatsEntry.Builder buildBsnGentableDescStatsEntry() { |
| 808 | return new OFBsnGentableDescStatsEntryVer13.Builder(); |
| 809 | } |
| 810 | |
| 811 | public OFBsnGentableDescStatsReply.Builder buildBsnGentableDescStatsReply() { |
| 812 | return new OFBsnGentableDescStatsReplyVer13.Builder().setXid(nextXid()); |
| 813 | } |
| 814 | |
| 815 | public OFBsnGentableDescStatsRequest.Builder buildBsnGentableDescStatsRequest() { |
| 816 | return new OFBsnGentableDescStatsRequestVer13.Builder().setXid(nextXid()); |
| 817 | } |
| 818 | public OFBsnGentableDescStatsRequest bsnGentableDescStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 819 | return new OFBsnGentableDescStatsRequestVer13( |
| 820 | nextXid(), |
| 821 | flags |
| 822 | ); |
| 823 | } |
| 824 | |
| 825 | public OFBsnGentableEntryAdd.Builder buildBsnGentableEntryAdd() { |
| 826 | return new OFBsnGentableEntryAddVer13.Builder().setXid(nextXid()); |
| 827 | } |
| 828 | |
| 829 | public OFBsnGentableEntryDelete.Builder buildBsnGentableEntryDelete() { |
| 830 | return new OFBsnGentableEntryDeleteVer13.Builder().setXid(nextXid()); |
| 831 | } |
| 832 | |
| 833 | public OFBsnGentableEntryDescStatsEntry.Builder buildBsnGentableEntryDescStatsEntry() { |
| 834 | return new OFBsnGentableEntryDescStatsEntryVer13.Builder(); |
| 835 | } |
| 836 | |
| 837 | public OFBsnGentableEntryDescStatsReply.Builder buildBsnGentableEntryDescStatsReply() { |
| 838 | return new OFBsnGentableEntryDescStatsReplyVer13.Builder().setXid(nextXid()); |
| 839 | } |
| 840 | |
| 841 | public OFBsnGentableEntryDescStatsRequest.Builder buildBsnGentableEntryDescStatsRequest() { |
| 842 | return new OFBsnGentableEntryDescStatsRequestVer13.Builder().setXid(nextXid()); |
| 843 | } |
| 844 | |
| 845 | public OFBsnGentableEntryStatsEntry.Builder buildBsnGentableEntryStatsEntry() { |
| 846 | return new OFBsnGentableEntryStatsEntryVer13.Builder(); |
| 847 | } |
| 848 | public OFBsnGentableEntryStatsEntry bsnGentableEntryStatsEntry(List<OFBsnTlv> key, List<OFBsnTlv> stats) { |
| 849 | return new OFBsnGentableEntryStatsEntryVer13( |
| 850 | key, |
| 851 | stats |
| 852 | ); |
| 853 | } |
| 854 | |
| 855 | public OFBsnGentableEntryStatsReply.Builder buildBsnGentableEntryStatsReply() { |
| 856 | return new OFBsnGentableEntryStatsReplyVer13.Builder().setXid(nextXid()); |
| 857 | } |
| 858 | |
| 859 | public OFBsnGentableEntryStatsRequest.Builder buildBsnGentableEntryStatsRequest() { |
| 860 | return new OFBsnGentableEntryStatsRequestVer13.Builder().setXid(nextXid()); |
| 861 | } |
| 862 | |
| 863 | public OFBsnGentableSetBucketsSize.Builder buildBsnGentableSetBucketsSize() { |
| 864 | return new OFBsnGentableSetBucketsSizeVer13.Builder().setXid(nextXid()); |
| 865 | } |
| 866 | |
| 867 | public OFBsnGentableStatsEntry.Builder buildBsnGentableStatsEntry() { |
| 868 | return new OFBsnGentableStatsEntryVer13.Builder(); |
| 869 | } |
| 870 | |
| 871 | public OFBsnGentableStatsReply.Builder buildBsnGentableStatsReply() { |
| 872 | return new OFBsnGentableStatsReplyVer13.Builder().setXid(nextXid()); |
| 873 | } |
| 874 | |
| 875 | public OFBsnGentableStatsRequest.Builder buildBsnGentableStatsRequest() { |
| 876 | return new OFBsnGentableStatsRequestVer13.Builder().setXid(nextXid()); |
| 877 | } |
| 878 | public OFBsnGentableStatsRequest bsnGentableStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 879 | return new OFBsnGentableStatsRequestVer13( |
| 880 | nextXid(), |
| 881 | flags |
| 882 | ); |
| 883 | } |
| 884 | |
| 885 | public OFBsnGetSwitchPipelineReply.Builder buildBsnGetSwitchPipelineReply() { |
| 886 | return new OFBsnGetSwitchPipelineReplyVer13.Builder().setXid(nextXid()); |
| 887 | } |
| 888 | public OFBsnGetSwitchPipelineReply bsnGetSwitchPipelineReply(String pipeline) { |
| 889 | return new OFBsnGetSwitchPipelineReplyVer13( |
| 890 | nextXid(), |
| 891 | pipeline |
| 892 | ); |
| 893 | } |
| 894 | |
| 895 | public OFBsnGetSwitchPipelineRequest.Builder buildBsnGetSwitchPipelineRequest() { |
| 896 | return new OFBsnGetSwitchPipelineRequestVer13.Builder().setXid(nextXid()); |
| 897 | } |
| 898 | public OFBsnGetSwitchPipelineRequest bsnGetSwitchPipelineRequest() { |
| 899 | return new OFBsnGetSwitchPipelineRequestVer13( |
| 900 | nextXid() |
| 901 | ); |
| 902 | } |
| 903 | |
| 904 | public OFBsnImageDescStatsReply.Builder buildBsnImageDescStatsReply() { |
| 905 | return new OFBsnImageDescStatsReplyVer13.Builder().setXid(nextXid()); |
| 906 | } |
| 907 | |
| 908 | public OFBsnImageDescStatsRequest.Builder buildBsnImageDescStatsRequest() { |
| 909 | return new OFBsnImageDescStatsRequestVer13.Builder().setXid(nextXid()); |
| 910 | } |
| 911 | public OFBsnImageDescStatsRequest bsnImageDescStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 912 | return new OFBsnImageDescStatsRequestVer13( |
| 913 | nextXid(), |
| 914 | flags |
| 915 | ); |
| 916 | } |
| 917 | |
| 918 | public OFBsnLacpConvergenceNotif.Builder buildBsnLacpConvergenceNotif() { |
| 919 | return new OFBsnLacpConvergenceNotifVer13.Builder().setXid(nextXid()); |
| 920 | } |
| 921 | |
| 922 | public OFBsnLacpStatsEntry.Builder buildBsnLacpStatsEntry() { |
| 923 | return new OFBsnLacpStatsEntryVer13.Builder(); |
| 924 | } |
| 925 | |
| 926 | public OFBsnLacpStatsReply.Builder buildBsnLacpStatsReply() { |
| 927 | return new OFBsnLacpStatsReplyVer13.Builder().setXid(nextXid()); |
| 928 | } |
| 929 | |
| 930 | public OFBsnLacpStatsRequest.Builder buildBsnLacpStatsRequest() { |
| 931 | return new OFBsnLacpStatsRequestVer13.Builder().setXid(nextXid()); |
| 932 | } |
| 933 | public OFBsnLacpStatsRequest bsnLacpStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 934 | return new OFBsnLacpStatsRequestVer13( |
| 935 | nextXid(), |
| 936 | flags |
| 937 | ); |
| 938 | } |
| 939 | |
| 940 | public OFBsnLog.Builder buildBsnLog() { |
| 941 | return new OFBsnLogVer13.Builder().setXid(nextXid()); |
| 942 | } |
| 943 | |
| 944 | public OFBsnPortCounterStatsEntry.Builder buildBsnPortCounterStatsEntry() { |
| 945 | return new OFBsnPortCounterStatsEntryVer13.Builder(); |
| 946 | } |
| 947 | public OFBsnPortCounterStatsEntry bsnPortCounterStatsEntry(OFPort portNo, List<U64> values) { |
| 948 | return new OFBsnPortCounterStatsEntryVer13( |
| 949 | portNo, |
| 950 | values |
| 951 | ); |
| 952 | } |
| 953 | |
| 954 | public OFBsnPortCounterStatsReply.Builder buildBsnPortCounterStatsReply() { |
| 955 | return new OFBsnPortCounterStatsReplyVer13.Builder().setXid(nextXid()); |
| 956 | } |
| 957 | |
| 958 | public OFBsnPortCounterStatsRequest.Builder buildBsnPortCounterStatsRequest() { |
| 959 | return new OFBsnPortCounterStatsRequestVer13.Builder().setXid(nextXid()); |
| 960 | } |
| 961 | |
| 962 | public OFBsnRoleStatus.Builder buildBsnRoleStatus() { |
| 963 | return new OFBsnRoleStatusVer13.Builder().setXid(nextXid()); |
| 964 | } |
| 965 | |
| 966 | public OFBsnSetAuxCxnsReply.Builder buildBsnSetAuxCxnsReply() { |
| 967 | return new OFBsnSetAuxCxnsReplyVer13.Builder().setXid(nextXid()); |
| 968 | } |
| 969 | |
| 970 | public OFBsnSetAuxCxnsRequest.Builder buildBsnSetAuxCxnsRequest() { |
| 971 | return new OFBsnSetAuxCxnsRequestVer13.Builder().setXid(nextXid()); |
| 972 | } |
| 973 | public OFBsnSetAuxCxnsRequest bsnSetAuxCxnsRequest(long numAux) { |
| 974 | return new OFBsnSetAuxCxnsRequestVer13( |
| 975 | nextXid(), |
| 976 | numAux |
| 977 | ); |
| 978 | } |
| 979 | |
| 980 | public OFBsnSetLacpReply.Builder buildBsnSetLacpReply() { |
| 981 | return new OFBsnSetLacpReplyVer13.Builder().setXid(nextXid()); |
| 982 | } |
| 983 | |
| 984 | public OFBsnSetLacpRequest.Builder buildBsnSetLacpRequest() { |
| 985 | return new OFBsnSetLacpRequestVer13.Builder().setXid(nextXid()); |
| 986 | } |
| 987 | |
| 988 | public OFBsnSetSwitchPipelineReply.Builder buildBsnSetSwitchPipelineReply() { |
| 989 | return new OFBsnSetSwitchPipelineReplyVer13.Builder().setXid(nextXid()); |
| 990 | } |
| 991 | public OFBsnSetSwitchPipelineReply bsnSetSwitchPipelineReply(long status) { |
| 992 | return new OFBsnSetSwitchPipelineReplyVer13( |
| 993 | nextXid(), |
| 994 | status |
| 995 | ); |
| 996 | } |
| 997 | |
| 998 | public OFBsnSetSwitchPipelineRequest.Builder buildBsnSetSwitchPipelineRequest() { |
| 999 | return new OFBsnSetSwitchPipelineRequestVer13.Builder().setXid(nextXid()); |
| 1000 | } |
| 1001 | public OFBsnSetSwitchPipelineRequest bsnSetSwitchPipelineRequest(String pipeline) { |
| 1002 | return new OFBsnSetSwitchPipelineRequestVer13( |
| 1003 | nextXid(), |
| 1004 | pipeline |
| 1005 | ); |
| 1006 | } |
| 1007 | |
| 1008 | public OFBsnSwitchPipelineStatsEntry.Builder buildBsnSwitchPipelineStatsEntry() { |
| 1009 | return new OFBsnSwitchPipelineStatsEntryVer13.Builder(); |
| 1010 | } |
| 1011 | public OFBsnSwitchPipelineStatsEntry bsnSwitchPipelineStatsEntry(String pipeline) { |
| 1012 | return new OFBsnSwitchPipelineStatsEntryVer13( |
| 1013 | pipeline |
| 1014 | ); |
| 1015 | } |
| 1016 | |
| 1017 | public OFBsnSwitchPipelineStatsReply.Builder buildBsnSwitchPipelineStatsReply() { |
| 1018 | return new OFBsnSwitchPipelineStatsReplyVer13.Builder().setXid(nextXid()); |
| 1019 | } |
| 1020 | |
| 1021 | public OFBsnSwitchPipelineStatsRequest.Builder buildBsnSwitchPipelineStatsRequest() { |
| 1022 | return new OFBsnSwitchPipelineStatsRequestVer13.Builder().setXid(nextXid()); |
| 1023 | } |
| 1024 | public OFBsnSwitchPipelineStatsRequest bsnSwitchPipelineStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 1025 | return new OFBsnSwitchPipelineStatsRequestVer13( |
| 1026 | nextXid(), |
| 1027 | flags |
| 1028 | ); |
| 1029 | } |
| 1030 | |
| 1031 | public OFBsnTableChecksumStatsEntry.Builder buildBsnTableChecksumStatsEntry() { |
| 1032 | return new OFBsnTableChecksumStatsEntryVer13.Builder(); |
| 1033 | } |
| 1034 | public OFBsnTableChecksumStatsEntry bsnTableChecksumStatsEntry(TableId tableId, U64 checksum) { |
| 1035 | return new OFBsnTableChecksumStatsEntryVer13( |
| 1036 | tableId, |
| 1037 | checksum |
| 1038 | ); |
| 1039 | } |
| 1040 | |
| 1041 | public OFBsnTableChecksumStatsReply.Builder buildBsnTableChecksumStatsReply() { |
| 1042 | return new OFBsnTableChecksumStatsReplyVer13.Builder().setXid(nextXid()); |
| 1043 | } |
| 1044 | |
| 1045 | public OFBsnTableChecksumStatsRequest.Builder buildBsnTableChecksumStatsRequest() { |
| 1046 | return new OFBsnTableChecksumStatsRequestVer13.Builder().setXid(nextXid()); |
| 1047 | } |
| 1048 | public OFBsnTableChecksumStatsRequest bsnTableChecksumStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 1049 | return new OFBsnTableChecksumStatsRequestVer13( |
| 1050 | nextXid(), |
| 1051 | flags |
| 1052 | ); |
| 1053 | } |
| 1054 | |
| 1055 | public OFBsnTableSetBucketsSize.Builder buildBsnTableSetBucketsSize() { |
| 1056 | return new OFBsnTableSetBucketsSizeVer13.Builder().setXid(nextXid()); |
| 1057 | } |
| 1058 | |
| 1059 | public OFBsnTimeReply.Builder buildBsnTimeReply() { |
| 1060 | return new OFBsnTimeReplyVer13.Builder().setXid(nextXid()); |
| 1061 | } |
| 1062 | public OFBsnTimeReply bsnTimeReply(U64 timeMs) { |
| 1063 | return new OFBsnTimeReplyVer13( |
| 1064 | nextXid(), |
| 1065 | timeMs |
| 1066 | ); |
| 1067 | } |
| 1068 | |
| 1069 | public OFBsnTimeRequest.Builder buildBsnTimeRequest() { |
| 1070 | return new OFBsnTimeRequestVer13.Builder().setXid(nextXid()); |
| 1071 | } |
| 1072 | public OFBsnTimeRequest bsnTimeRequest() { |
| 1073 | return new OFBsnTimeRequestVer13( |
| 1074 | nextXid() |
| 1075 | ); |
| 1076 | } |
| 1077 | |
| 1078 | public OFBsnVlanCounterStatsEntry.Builder buildBsnVlanCounterStatsEntry() { |
| 1079 | return new OFBsnVlanCounterStatsEntryVer13.Builder(); |
| 1080 | } |
| 1081 | public OFBsnVlanCounterStatsEntry bsnVlanCounterStatsEntry(int vlanVid, List<U64> values) { |
| 1082 | return new OFBsnVlanCounterStatsEntryVer13( |
| 1083 | vlanVid, |
| 1084 | values |
| 1085 | ); |
| 1086 | } |
| 1087 | |
| 1088 | public OFBsnVlanCounterStatsReply.Builder buildBsnVlanCounterStatsReply() { |
| 1089 | return new OFBsnVlanCounterStatsReplyVer13.Builder().setXid(nextXid()); |
| 1090 | } |
| 1091 | |
| 1092 | public OFBsnVlanCounterStatsRequest.Builder buildBsnVlanCounterStatsRequest() { |
| 1093 | return new OFBsnVlanCounterStatsRequestVer13.Builder().setXid(nextXid()); |
| 1094 | } |
| 1095 | |
| 1096 | public OFBsnVrfCounterStatsEntry.Builder buildBsnVrfCounterStatsEntry() { |
| 1097 | return new OFBsnVrfCounterStatsEntryVer13.Builder(); |
| 1098 | } |
| 1099 | public OFBsnVrfCounterStatsEntry bsnVrfCounterStatsEntry(long vrf, List<U64> values) { |
| 1100 | return new OFBsnVrfCounterStatsEntryVer13( |
| 1101 | vrf, |
| 1102 | values |
| 1103 | ); |
| 1104 | } |
| 1105 | |
| 1106 | public OFBsnVrfCounterStatsReply.Builder buildBsnVrfCounterStatsReply() { |
| 1107 | return new OFBsnVrfCounterStatsReplyVer13.Builder().setXid(nextXid()); |
| 1108 | } |
| 1109 | |
| 1110 | public OFBsnVrfCounterStatsRequest.Builder buildBsnVrfCounterStatsRequest() { |
| 1111 | return new OFBsnVrfCounterStatsRequestVer13.Builder().setXid(nextXid()); |
| 1112 | } |
| 1113 | |
| 1114 | public OFHelloElemVersionbitmap.Builder buildHelloElemVersionbitmap() { |
| 1115 | return new OFHelloElemVersionbitmapVer13.Builder(); |
| 1116 | } |
| 1117 | public OFHelloElemVersionbitmap helloElemVersionbitmap(List<U32> bitmaps) { |
| 1118 | return new OFHelloElemVersionbitmapVer13( |
| 1119 | bitmaps |
| 1120 | ); |
| 1121 | } |
| 1122 | |
| 1123 | public OFMeterBandStats.Builder buildMeterBandStats() { |
| 1124 | return new OFMeterBandStatsVer13.Builder(); |
| 1125 | } |
| 1126 | public OFMeterBandStats meterBandStats(U64 packetBandCount, U64 byteBandCount) { |
| 1127 | return new OFMeterBandStatsVer13( |
| 1128 | packetBandCount, |
| 1129 | byteBandCount |
| 1130 | ); |
| 1131 | } |
| 1132 | |
| 1133 | public OFMeterConfig.Builder buildMeterConfig() { |
| 1134 | return new OFMeterConfigVer13.Builder(); |
| 1135 | } |
| 1136 | |
| 1137 | public OFMeterConfigStatsReply.Builder buildMeterConfigStatsReply() { |
| 1138 | return new OFMeterConfigStatsReplyVer13.Builder().setXid(nextXid()); |
| 1139 | } |
| 1140 | |
| 1141 | public OFMeterConfigStatsRequest.Builder buildMeterConfigStatsRequest() { |
| 1142 | return new OFMeterConfigStatsRequestVer13.Builder().setXid(nextXid()); |
| 1143 | } |
| 1144 | |
| 1145 | public OFMeterFeatures.Builder buildMeterFeatures() { |
| 1146 | return new OFMeterFeaturesVer13.Builder(); |
| 1147 | } |
| 1148 | |
| 1149 | public OFMeterFeaturesStatsReply.Builder buildMeterFeaturesStatsReply() { |
| 1150 | return new OFMeterFeaturesStatsReplyVer13.Builder().setXid(nextXid()); |
| 1151 | } |
| 1152 | |
| 1153 | public OFMeterFeaturesStatsRequest.Builder buildMeterFeaturesStatsRequest() { |
| 1154 | return new OFMeterFeaturesStatsRequestVer13.Builder().setXid(nextXid()); |
| 1155 | } |
| 1156 | public OFMeterFeaturesStatsRequest meterFeaturesStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 1157 | return new OFMeterFeaturesStatsRequestVer13( |
| 1158 | nextXid(), |
| 1159 | flags |
| 1160 | ); |
| 1161 | } |
| 1162 | |
| 1163 | public OFMeterMod.Builder buildMeterMod() { |
| 1164 | return new OFMeterModVer13.Builder().setXid(nextXid()); |
| 1165 | } |
| 1166 | |
| 1167 | public OFMeterStats.Builder buildMeterStats() { |
| 1168 | return new OFMeterStatsVer13.Builder(); |
| 1169 | } |
| 1170 | |
| 1171 | public OFMeterStatsReply.Builder buildMeterStatsReply() { |
| 1172 | return new OFMeterStatsReplyVer13.Builder().setXid(nextXid()); |
| 1173 | } |
| 1174 | |
| 1175 | public OFMeterStatsRequest.Builder buildMeterStatsRequest() { |
| 1176 | return new OFMeterStatsRequestVer13.Builder().setXid(nextXid()); |
| 1177 | } |
| 1178 | |
| 1179 | public OFPortDescStatsReply.Builder buildPortDescStatsReply() { |
| 1180 | return new OFPortDescStatsReplyVer13.Builder().setXid(nextXid()); |
| 1181 | } |
| 1182 | |
| 1183 | public OFPortDescStatsRequest.Builder buildPortDescStatsRequest() { |
| 1184 | return new OFPortDescStatsRequestVer13.Builder().setXid(nextXid()); |
| 1185 | } |
| 1186 | public OFPortDescStatsRequest portDescStatsRequest(Set<OFStatsRequestFlags> flags) { |
| 1187 | return new OFPortDescStatsRequestVer13( |
| 1188 | nextXid(), |
| 1189 | flags |
| 1190 | ); |
| 1191 | } |
| 1192 | |
| 1193 | public OFTableFeaturePropApplyActions.Builder buildTableFeaturePropApplyActions() { |
| 1194 | return new OFTableFeaturePropApplyActionsVer13.Builder(); |
| 1195 | } |
| 1196 | public OFTableFeaturePropApplyActions tableFeaturePropApplyActions(List<OFActionId> actionIds) { |
| 1197 | return new OFTableFeaturePropApplyActionsVer13( |
| 1198 | actionIds |
| 1199 | ); |
| 1200 | } |
| 1201 | |
| 1202 | public OFTableFeaturePropApplyActionsMiss.Builder buildTableFeaturePropApplyActionsMiss() { |
| 1203 | return new OFTableFeaturePropApplyActionsMissVer13.Builder(); |
| 1204 | } |
| 1205 | public OFTableFeaturePropApplyActionsMiss tableFeaturePropApplyActionsMiss(List<OFActionId> actionIds) { |
| 1206 | return new OFTableFeaturePropApplyActionsMissVer13( |
| 1207 | actionIds |
| 1208 | ); |
| 1209 | } |
| 1210 | |
| 1211 | public OFTableFeaturePropApplySetfield.Builder buildTableFeaturePropApplySetfield() { |
| 1212 | return new OFTableFeaturePropApplySetfieldVer13.Builder(); |
| 1213 | } |
| 1214 | public OFTableFeaturePropApplySetfield tableFeaturePropApplySetfield(List<U32> oxmIds) { |
| 1215 | return new OFTableFeaturePropApplySetfieldVer13( |
| 1216 | oxmIds |
| 1217 | ); |
| 1218 | } |
| 1219 | |
| 1220 | public OFTableFeaturePropApplySetfieldMiss.Builder buildTableFeaturePropApplySetfieldMiss() { |
| 1221 | return new OFTableFeaturePropApplySetfieldMissVer13.Builder(); |
| 1222 | } |
| 1223 | public OFTableFeaturePropApplySetfieldMiss tableFeaturePropApplySetfieldMiss(List<U32> oxmIds) { |
| 1224 | return new OFTableFeaturePropApplySetfieldMissVer13( |
| 1225 | oxmIds |
| 1226 | ); |
| 1227 | } |
| 1228 | |
| 1229 | public OFTableFeaturePropExperimenter.Builder buildTableFeaturePropExperimenter() { |
| 1230 | return new OFTableFeaturePropExperimenterVer13.Builder(); |
| 1231 | } |
| 1232 | |
| 1233 | public OFTableFeaturePropExperimenterMiss.Builder buildTableFeaturePropExperimenterMiss() { |
| 1234 | return new OFTableFeaturePropExperimenterMissVer13.Builder(); |
| 1235 | } |
| 1236 | |
| 1237 | public OFTableFeaturePropInstructions.Builder buildTableFeaturePropInstructions() { |
| 1238 | return new OFTableFeaturePropInstructionsVer13.Builder(); |
| 1239 | } |
| 1240 | public OFTableFeaturePropInstructions tableFeaturePropInstructions(List<OFInstructionId> instructionIds) { |
| 1241 | return new OFTableFeaturePropInstructionsVer13( |
| 1242 | instructionIds |
| 1243 | ); |
| 1244 | } |
| 1245 | |
| 1246 | public OFTableFeaturePropInstructionsMiss.Builder buildTableFeaturePropInstructionsMiss() { |
| 1247 | return new OFTableFeaturePropInstructionsMissVer13.Builder(); |
| 1248 | } |
| 1249 | public OFTableFeaturePropInstructionsMiss tableFeaturePropInstructionsMiss(List<OFInstructionId> instructionIds) { |
| 1250 | return new OFTableFeaturePropInstructionsMissVer13( |
| 1251 | instructionIds |
| 1252 | ); |
| 1253 | } |
| 1254 | |
| 1255 | public OFTableFeaturePropMatch.Builder buildTableFeaturePropMatch() { |
| 1256 | return new OFTableFeaturePropMatchVer13.Builder(); |
| 1257 | } |
| 1258 | public OFTableFeaturePropMatch tableFeaturePropMatch(List<U32> oxmIds) { |
| 1259 | return new OFTableFeaturePropMatchVer13( |
| 1260 | oxmIds |
| 1261 | ); |
| 1262 | } |
| 1263 | |
| 1264 | public OFTableFeaturePropNextTables.Builder buildTableFeaturePropNextTables() { |
| 1265 | return new OFTableFeaturePropNextTablesVer13.Builder(); |
| 1266 | } |
| 1267 | public OFTableFeaturePropNextTables tableFeaturePropNextTables(List<U8> nextTableIds) { |
| 1268 | return new OFTableFeaturePropNextTablesVer13( |
| 1269 | nextTableIds |
| 1270 | ); |
| 1271 | } |
| 1272 | |
| 1273 | public OFTableFeaturePropNextTablesMiss.Builder buildTableFeaturePropNextTablesMiss() { |
| 1274 | return new OFTableFeaturePropNextTablesMissVer13.Builder(); |
| 1275 | } |
| 1276 | public OFTableFeaturePropNextTablesMiss tableFeaturePropNextTablesMiss(List<U8> nextTableIds) { |
| 1277 | return new OFTableFeaturePropNextTablesMissVer13( |
| 1278 | nextTableIds |
| 1279 | ); |
| 1280 | } |
| 1281 | |
| 1282 | public OFTableFeaturePropWildcards.Builder buildTableFeaturePropWildcards() { |
| 1283 | return new OFTableFeaturePropWildcardsVer13.Builder(); |
| 1284 | } |
| 1285 | public OFTableFeaturePropWildcards tableFeaturePropWildcards(List<U32> oxmIds) { |
| 1286 | return new OFTableFeaturePropWildcardsVer13( |
| 1287 | oxmIds |
| 1288 | ); |
| 1289 | } |
| 1290 | |
| 1291 | public OFTableFeaturePropWriteActions.Builder buildTableFeaturePropWriteActions() { |
| 1292 | return new OFTableFeaturePropWriteActionsVer13.Builder(); |
| 1293 | } |
| 1294 | public OFTableFeaturePropWriteActions tableFeaturePropWriteActions(List<OFActionId> actionIds) { |
| 1295 | return new OFTableFeaturePropWriteActionsVer13( |
| 1296 | actionIds |
| 1297 | ); |
| 1298 | } |
| 1299 | |
| 1300 | public OFTableFeaturePropWriteActionsMiss.Builder buildTableFeaturePropWriteActionsMiss() { |
| 1301 | return new OFTableFeaturePropWriteActionsMissVer13.Builder(); |
| 1302 | } |
| 1303 | public OFTableFeaturePropWriteActionsMiss tableFeaturePropWriteActionsMiss(List<OFActionId> actionIds) { |
| 1304 | return new OFTableFeaturePropWriteActionsMissVer13( |
| 1305 | actionIds |
| 1306 | ); |
| 1307 | } |
| 1308 | |
| 1309 | public OFTableFeaturePropWriteSetfield.Builder buildTableFeaturePropWriteSetfield() { |
| 1310 | return new OFTableFeaturePropWriteSetfieldVer13.Builder(); |
| 1311 | } |
| 1312 | public OFTableFeaturePropWriteSetfield tableFeaturePropWriteSetfield(List<U32> oxmIds) { |
| 1313 | return new OFTableFeaturePropWriteSetfieldVer13( |
| 1314 | oxmIds |
| 1315 | ); |
| 1316 | } |
| 1317 | |
| 1318 | public OFTableFeaturePropWriteSetfieldMiss.Builder buildTableFeaturePropWriteSetfieldMiss() { |
| 1319 | return new OFTableFeaturePropWriteSetfieldMissVer13.Builder(); |
| 1320 | } |
| 1321 | public OFTableFeaturePropWriteSetfieldMiss tableFeaturePropWriteSetfieldMiss(List<U32> oxmIds) { |
| 1322 | return new OFTableFeaturePropWriteSetfieldMissVer13( |
| 1323 | oxmIds |
| 1324 | ); |
| 1325 | } |
| 1326 | |
| 1327 | public OFTableFeatures.Builder buildTableFeatures() { |
| 1328 | return new OFTableFeaturesVer13.Builder(); |
| 1329 | } |
| 1330 | |
| 1331 | public OFTableFeaturesStatsReply.Builder buildTableFeaturesStatsReply() { |
| 1332 | return new OFTableFeaturesStatsReplyVer13.Builder().setXid(nextXid()); |
| 1333 | } |
| 1334 | |
| 1335 | public OFTableFeaturesStatsRequest.Builder buildTableFeaturesStatsRequest() { |
| 1336 | return new OFTableFeaturesStatsRequestVer13.Builder().setXid(nextXid()); |
| 1337 | } |
| 1338 | |
| 1339 | public OFUint64.Builder buildUint64() { |
| 1340 | return new OFUint64Ver13.Builder(); |
| 1341 | } |
| 1342 | public OFUint64 uint64(U64 value) { |
| 1343 | return new OFUint64Ver13( |
| 1344 | value |
| 1345 | ); |
| 1346 | } |
| 1347 | |
| 1348 | public OFMessageReader<OFMessage> getReader() { |
| 1349 | return OFMessageVer13.READER; |
| 1350 | } |
| 1351 | |
| 1352 | public long nextXid() { |
| 1353 | return xidGenerator.nextXid(); |
| 1354 | } |
| 1355 | |
| 1356 | public OFVersion getVersion() { |
| 1357 | return OFVersion.OF_13; |
| 1358 | } |
| 1359 | } |