tom | 0eb04ca | 2014-08-25 14:34:51 -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 | |
| 27 | |
| 28 | public class OFOxmsVer12 implements OFOxms { |
| 29 | public final static OFOxmsVer12 INSTANCE = new OFOxmsVer12(); |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | public OFOxmArpOp.Builder buildArpOp() { |
| 35 | return new OFOxmArpOpVer12.Builder(); |
| 36 | } |
| 37 | public OFOxmArpOp arpOp(ArpOpcode value) { |
| 38 | return new OFOxmArpOpVer12( |
| 39 | value |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | public OFOxmArpOpMasked.Builder buildArpOpMasked() { |
| 44 | return new OFOxmArpOpMaskedVer12.Builder(); |
| 45 | } |
| 46 | public OFOxmArpOpMasked arpOpMasked(ArpOpcode value, ArpOpcode mask) { |
| 47 | return new OFOxmArpOpMaskedVer12( |
| 48 | value, |
| 49 | mask |
| 50 | ); |
| 51 | } |
| 52 | |
| 53 | public OFOxmArpSha.Builder buildArpSha() { |
| 54 | return new OFOxmArpShaVer12.Builder(); |
| 55 | } |
| 56 | public OFOxmArpSha arpSha(MacAddress value) { |
| 57 | return new OFOxmArpShaVer12( |
| 58 | value |
| 59 | ); |
| 60 | } |
| 61 | |
| 62 | public OFOxmArpShaMasked.Builder buildArpShaMasked() { |
| 63 | return new OFOxmArpShaMaskedVer12.Builder(); |
| 64 | } |
| 65 | public OFOxmArpShaMasked arpShaMasked(MacAddress value, MacAddress mask) { |
| 66 | return new OFOxmArpShaMaskedVer12( |
| 67 | value, |
| 68 | mask |
| 69 | ); |
| 70 | } |
| 71 | |
| 72 | public OFOxmArpSpa.Builder buildArpSpa() { |
| 73 | return new OFOxmArpSpaVer12.Builder(); |
| 74 | } |
| 75 | public OFOxmArpSpa arpSpa(IPv4Address value) { |
| 76 | return new OFOxmArpSpaVer12( |
| 77 | value |
| 78 | ); |
| 79 | } |
| 80 | |
| 81 | public OFOxmArpSpaMasked.Builder buildArpSpaMasked() { |
| 82 | return new OFOxmArpSpaMaskedVer12.Builder(); |
| 83 | } |
| 84 | public OFOxmArpSpaMasked arpSpaMasked(IPv4Address value, IPv4Address mask) { |
| 85 | return new OFOxmArpSpaMaskedVer12( |
| 86 | value, |
| 87 | mask |
| 88 | ); |
| 89 | } |
| 90 | |
| 91 | public OFOxmArpTha.Builder buildArpTha() { |
| 92 | return new OFOxmArpThaVer12.Builder(); |
| 93 | } |
| 94 | public OFOxmArpTha arpTha(MacAddress value) { |
| 95 | return new OFOxmArpThaVer12( |
| 96 | value |
| 97 | ); |
| 98 | } |
| 99 | |
| 100 | public OFOxmArpThaMasked.Builder buildArpThaMasked() { |
| 101 | return new OFOxmArpThaMaskedVer12.Builder(); |
| 102 | } |
| 103 | public OFOxmArpThaMasked arpThaMasked(MacAddress value, MacAddress mask) { |
| 104 | return new OFOxmArpThaMaskedVer12( |
| 105 | value, |
| 106 | mask |
| 107 | ); |
| 108 | } |
| 109 | |
| 110 | public OFOxmArpTpa.Builder buildArpTpa() { |
| 111 | return new OFOxmArpTpaVer12.Builder(); |
| 112 | } |
| 113 | public OFOxmArpTpa arpTpa(IPv4Address value) { |
| 114 | return new OFOxmArpTpaVer12( |
| 115 | value |
| 116 | ); |
| 117 | } |
| 118 | |
| 119 | public OFOxmArpTpaMasked.Builder buildArpTpaMasked() { |
| 120 | return new OFOxmArpTpaMaskedVer12.Builder(); |
| 121 | } |
| 122 | public OFOxmArpTpaMasked arpTpaMasked(IPv4Address value, IPv4Address mask) { |
| 123 | return new OFOxmArpTpaMaskedVer12( |
| 124 | value, |
| 125 | mask |
| 126 | ); |
| 127 | } |
| 128 | |
| 129 | public OFOxmBsnEgrPortGroupId.Builder buildBsnEgrPortGroupId() { |
| 130 | return new OFOxmBsnEgrPortGroupIdVer12.Builder(); |
| 131 | } |
| 132 | public OFOxmBsnEgrPortGroupId bsnEgrPortGroupId(ClassId value) { |
| 133 | return new OFOxmBsnEgrPortGroupIdVer12( |
| 134 | value |
| 135 | ); |
| 136 | } |
| 137 | |
| 138 | public OFOxmBsnEgrPortGroupIdMasked.Builder buildBsnEgrPortGroupIdMasked() { |
| 139 | return new OFOxmBsnEgrPortGroupIdMaskedVer12.Builder(); |
| 140 | } |
| 141 | public OFOxmBsnEgrPortGroupIdMasked bsnEgrPortGroupIdMasked(ClassId value, ClassId mask) { |
| 142 | return new OFOxmBsnEgrPortGroupIdMaskedVer12( |
| 143 | value, |
| 144 | mask |
| 145 | ); |
| 146 | } |
| 147 | |
| 148 | public OFOxmBsnGlobalVrfAllowed.Builder buildBsnGlobalVrfAllowed() { |
| 149 | return new OFOxmBsnGlobalVrfAllowedVer12.Builder(); |
| 150 | } |
| 151 | public OFOxmBsnGlobalVrfAllowed bsnGlobalVrfAllowed(OFBooleanValue value) { |
| 152 | return new OFOxmBsnGlobalVrfAllowedVer12( |
| 153 | value |
| 154 | ); |
| 155 | } |
| 156 | |
| 157 | public OFOxmBsnGlobalVrfAllowedMasked.Builder buildBsnGlobalVrfAllowedMasked() { |
| 158 | return new OFOxmBsnGlobalVrfAllowedMaskedVer12.Builder(); |
| 159 | } |
| 160 | public OFOxmBsnGlobalVrfAllowedMasked bsnGlobalVrfAllowedMasked(OFBooleanValue value, OFBooleanValue mask) { |
| 161 | return new OFOxmBsnGlobalVrfAllowedMaskedVer12( |
| 162 | value, |
| 163 | mask |
| 164 | ); |
| 165 | } |
| 166 | |
| 167 | public OFOxmBsnInPorts128.Builder buildBsnInPorts128() { |
| 168 | return new OFOxmBsnInPorts128Ver12.Builder(); |
| 169 | } |
| 170 | public OFOxmBsnInPorts128 bsnInPorts128(OFBitMask128 value) { |
| 171 | return new OFOxmBsnInPorts128Ver12( |
| 172 | value |
| 173 | ); |
| 174 | } |
| 175 | |
| 176 | public OFOxmBsnInPorts128Masked.Builder buildBsnInPorts128Masked() { |
| 177 | return new OFOxmBsnInPorts128MaskedVer12.Builder(); |
| 178 | } |
| 179 | public OFOxmBsnInPorts128Masked bsnInPorts128Masked(OFBitMask128 value, OFBitMask128 mask) { |
| 180 | return new OFOxmBsnInPorts128MaskedVer12( |
| 181 | value, |
| 182 | mask |
| 183 | ); |
| 184 | } |
| 185 | |
| 186 | public OFOxmBsnL3DstClassId.Builder buildBsnL3DstClassId() { |
| 187 | return new OFOxmBsnL3DstClassIdVer12.Builder(); |
| 188 | } |
| 189 | public OFOxmBsnL3DstClassId bsnL3DstClassId(ClassId value) { |
| 190 | return new OFOxmBsnL3DstClassIdVer12( |
| 191 | value |
| 192 | ); |
| 193 | } |
| 194 | |
| 195 | public OFOxmBsnL3DstClassIdMasked.Builder buildBsnL3DstClassIdMasked() { |
| 196 | return new OFOxmBsnL3DstClassIdMaskedVer12.Builder(); |
| 197 | } |
| 198 | public OFOxmBsnL3DstClassIdMasked bsnL3DstClassIdMasked(ClassId value, ClassId mask) { |
| 199 | return new OFOxmBsnL3DstClassIdMaskedVer12( |
| 200 | value, |
| 201 | mask |
| 202 | ); |
| 203 | } |
| 204 | |
| 205 | public OFOxmBsnL3InterfaceClassId.Builder buildBsnL3InterfaceClassId() { |
| 206 | return new OFOxmBsnL3InterfaceClassIdVer12.Builder(); |
| 207 | } |
| 208 | public OFOxmBsnL3InterfaceClassId bsnL3InterfaceClassId(ClassId value) { |
| 209 | return new OFOxmBsnL3InterfaceClassIdVer12( |
| 210 | value |
| 211 | ); |
| 212 | } |
| 213 | |
| 214 | public OFOxmBsnL3InterfaceClassIdMasked.Builder buildBsnL3InterfaceClassIdMasked() { |
| 215 | return new OFOxmBsnL3InterfaceClassIdMaskedVer12.Builder(); |
| 216 | } |
| 217 | public OFOxmBsnL3InterfaceClassIdMasked bsnL3InterfaceClassIdMasked(ClassId value, ClassId mask) { |
| 218 | return new OFOxmBsnL3InterfaceClassIdMaskedVer12( |
| 219 | value, |
| 220 | mask |
| 221 | ); |
| 222 | } |
| 223 | |
| 224 | public OFOxmBsnL3SrcClassId.Builder buildBsnL3SrcClassId() { |
| 225 | return new OFOxmBsnL3SrcClassIdVer12.Builder(); |
| 226 | } |
| 227 | public OFOxmBsnL3SrcClassId bsnL3SrcClassId(ClassId value) { |
| 228 | return new OFOxmBsnL3SrcClassIdVer12( |
| 229 | value |
| 230 | ); |
| 231 | } |
| 232 | |
| 233 | public OFOxmBsnL3SrcClassIdMasked.Builder buildBsnL3SrcClassIdMasked() { |
| 234 | return new OFOxmBsnL3SrcClassIdMaskedVer12.Builder(); |
| 235 | } |
| 236 | public OFOxmBsnL3SrcClassIdMasked bsnL3SrcClassIdMasked(ClassId value, ClassId mask) { |
| 237 | return new OFOxmBsnL3SrcClassIdMaskedVer12( |
| 238 | value, |
| 239 | mask |
| 240 | ); |
| 241 | } |
| 242 | |
| 243 | public OFOxmBsnLagId.Builder buildBsnLagId() { |
| 244 | return new OFOxmBsnLagIdVer12.Builder(); |
| 245 | } |
| 246 | public OFOxmBsnLagId bsnLagId(LagId value) { |
| 247 | return new OFOxmBsnLagIdVer12( |
| 248 | value |
| 249 | ); |
| 250 | } |
| 251 | |
| 252 | public OFOxmBsnLagIdMasked.Builder buildBsnLagIdMasked() { |
| 253 | return new OFOxmBsnLagIdMaskedVer12.Builder(); |
| 254 | } |
| 255 | public OFOxmBsnLagIdMasked bsnLagIdMasked(LagId value, LagId mask) { |
| 256 | return new OFOxmBsnLagIdMaskedVer12( |
| 257 | value, |
| 258 | mask |
| 259 | ); |
| 260 | } |
| 261 | |
| 262 | public OFOxmBsnTcpFlags.Builder buildBsnTcpFlags() { |
| 263 | return new OFOxmBsnTcpFlagsVer12.Builder(); |
| 264 | } |
| 265 | public OFOxmBsnTcpFlags bsnTcpFlags(U16 value) { |
| 266 | return new OFOxmBsnTcpFlagsVer12( |
| 267 | value |
| 268 | ); |
| 269 | } |
| 270 | |
| 271 | public OFOxmBsnTcpFlagsMasked.Builder buildBsnTcpFlagsMasked() { |
| 272 | return new OFOxmBsnTcpFlagsMaskedVer12.Builder(); |
| 273 | } |
| 274 | public OFOxmBsnTcpFlagsMasked bsnTcpFlagsMasked(U16 value, U16 mask) { |
| 275 | return new OFOxmBsnTcpFlagsMaskedVer12( |
| 276 | value, |
| 277 | mask |
| 278 | ); |
| 279 | } |
| 280 | |
| 281 | public OFOxmBsnUdf0.Builder buildBsnUdf0() { |
| 282 | return new OFOxmBsnUdf0Ver12.Builder(); |
| 283 | } |
| 284 | public OFOxmBsnUdf0 bsnUdf0(UDF value) { |
| 285 | return new OFOxmBsnUdf0Ver12( |
| 286 | value |
| 287 | ); |
| 288 | } |
| 289 | |
| 290 | public OFOxmBsnUdf0Masked.Builder buildBsnUdf0Masked() { |
| 291 | return new OFOxmBsnUdf0MaskedVer12.Builder(); |
| 292 | } |
| 293 | public OFOxmBsnUdf0Masked bsnUdf0Masked(UDF value, UDF mask) { |
| 294 | return new OFOxmBsnUdf0MaskedVer12( |
| 295 | value, |
| 296 | mask |
| 297 | ); |
| 298 | } |
| 299 | |
| 300 | public OFOxmBsnUdf1.Builder buildBsnUdf1() { |
| 301 | return new OFOxmBsnUdf1Ver12.Builder(); |
| 302 | } |
| 303 | public OFOxmBsnUdf1 bsnUdf1(UDF value) { |
| 304 | return new OFOxmBsnUdf1Ver12( |
| 305 | value |
| 306 | ); |
| 307 | } |
| 308 | |
| 309 | public OFOxmBsnUdf1Masked.Builder buildBsnUdf1Masked() { |
| 310 | return new OFOxmBsnUdf1MaskedVer12.Builder(); |
| 311 | } |
| 312 | public OFOxmBsnUdf1Masked bsnUdf1Masked(UDF value, UDF mask) { |
| 313 | return new OFOxmBsnUdf1MaskedVer12( |
| 314 | value, |
| 315 | mask |
| 316 | ); |
| 317 | } |
| 318 | |
| 319 | public OFOxmBsnUdf2.Builder buildBsnUdf2() { |
| 320 | return new OFOxmBsnUdf2Ver12.Builder(); |
| 321 | } |
| 322 | public OFOxmBsnUdf2 bsnUdf2(UDF value) { |
| 323 | return new OFOxmBsnUdf2Ver12( |
| 324 | value |
| 325 | ); |
| 326 | } |
| 327 | |
| 328 | public OFOxmBsnUdf2Masked.Builder buildBsnUdf2Masked() { |
| 329 | return new OFOxmBsnUdf2MaskedVer12.Builder(); |
| 330 | } |
| 331 | public OFOxmBsnUdf2Masked bsnUdf2Masked(UDF value, UDF mask) { |
| 332 | return new OFOxmBsnUdf2MaskedVer12( |
| 333 | value, |
| 334 | mask |
| 335 | ); |
| 336 | } |
| 337 | |
| 338 | public OFOxmBsnUdf3.Builder buildBsnUdf3() { |
| 339 | return new OFOxmBsnUdf3Ver12.Builder(); |
| 340 | } |
| 341 | public OFOxmBsnUdf3 bsnUdf3(UDF value) { |
| 342 | return new OFOxmBsnUdf3Ver12( |
| 343 | value |
| 344 | ); |
| 345 | } |
| 346 | |
| 347 | public OFOxmBsnUdf3Masked.Builder buildBsnUdf3Masked() { |
| 348 | return new OFOxmBsnUdf3MaskedVer12.Builder(); |
| 349 | } |
| 350 | public OFOxmBsnUdf3Masked bsnUdf3Masked(UDF value, UDF mask) { |
| 351 | return new OFOxmBsnUdf3MaskedVer12( |
| 352 | value, |
| 353 | mask |
| 354 | ); |
| 355 | } |
| 356 | |
| 357 | public OFOxmBsnUdf4.Builder buildBsnUdf4() { |
| 358 | return new OFOxmBsnUdf4Ver12.Builder(); |
| 359 | } |
| 360 | public OFOxmBsnUdf4 bsnUdf4(UDF value) { |
| 361 | return new OFOxmBsnUdf4Ver12( |
| 362 | value |
| 363 | ); |
| 364 | } |
| 365 | |
| 366 | public OFOxmBsnUdf4Masked.Builder buildBsnUdf4Masked() { |
| 367 | return new OFOxmBsnUdf4MaskedVer12.Builder(); |
| 368 | } |
| 369 | public OFOxmBsnUdf4Masked bsnUdf4Masked(UDF value, UDF mask) { |
| 370 | return new OFOxmBsnUdf4MaskedVer12( |
| 371 | value, |
| 372 | mask |
| 373 | ); |
| 374 | } |
| 375 | |
| 376 | public OFOxmBsnUdf5.Builder buildBsnUdf5() { |
| 377 | return new OFOxmBsnUdf5Ver12.Builder(); |
| 378 | } |
| 379 | public OFOxmBsnUdf5 bsnUdf5(UDF value) { |
| 380 | return new OFOxmBsnUdf5Ver12( |
| 381 | value |
| 382 | ); |
| 383 | } |
| 384 | |
| 385 | public OFOxmBsnUdf5Masked.Builder buildBsnUdf5Masked() { |
| 386 | return new OFOxmBsnUdf5MaskedVer12.Builder(); |
| 387 | } |
| 388 | public OFOxmBsnUdf5Masked bsnUdf5Masked(UDF value, UDF mask) { |
| 389 | return new OFOxmBsnUdf5MaskedVer12( |
| 390 | value, |
| 391 | mask |
| 392 | ); |
| 393 | } |
| 394 | |
| 395 | public OFOxmBsnUdf6.Builder buildBsnUdf6() { |
| 396 | return new OFOxmBsnUdf6Ver12.Builder(); |
| 397 | } |
| 398 | public OFOxmBsnUdf6 bsnUdf6(UDF value) { |
| 399 | return new OFOxmBsnUdf6Ver12( |
| 400 | value |
| 401 | ); |
| 402 | } |
| 403 | |
| 404 | public OFOxmBsnUdf6Masked.Builder buildBsnUdf6Masked() { |
| 405 | return new OFOxmBsnUdf6MaskedVer12.Builder(); |
| 406 | } |
| 407 | public OFOxmBsnUdf6Masked bsnUdf6Masked(UDF value, UDF mask) { |
| 408 | return new OFOxmBsnUdf6MaskedVer12( |
| 409 | value, |
| 410 | mask |
| 411 | ); |
| 412 | } |
| 413 | |
| 414 | public OFOxmBsnUdf7.Builder buildBsnUdf7() { |
| 415 | return new OFOxmBsnUdf7Ver12.Builder(); |
| 416 | } |
| 417 | public OFOxmBsnUdf7 bsnUdf7(UDF value) { |
| 418 | return new OFOxmBsnUdf7Ver12( |
| 419 | value |
| 420 | ); |
| 421 | } |
| 422 | |
| 423 | public OFOxmBsnUdf7Masked.Builder buildBsnUdf7Masked() { |
| 424 | return new OFOxmBsnUdf7MaskedVer12.Builder(); |
| 425 | } |
| 426 | public OFOxmBsnUdf7Masked bsnUdf7Masked(UDF value, UDF mask) { |
| 427 | return new OFOxmBsnUdf7MaskedVer12( |
| 428 | value, |
| 429 | mask |
| 430 | ); |
| 431 | } |
| 432 | |
| 433 | public OFOxmBsnVlanXlatePortGroupId.Builder buildBsnVlanXlatePortGroupId() { |
| 434 | return new OFOxmBsnVlanXlatePortGroupIdVer12.Builder(); |
| 435 | } |
| 436 | public OFOxmBsnVlanXlatePortGroupId bsnVlanXlatePortGroupId(ClassId value) { |
| 437 | return new OFOxmBsnVlanXlatePortGroupIdVer12( |
| 438 | value |
| 439 | ); |
| 440 | } |
| 441 | |
| 442 | public OFOxmBsnVlanXlatePortGroupIdMasked.Builder buildBsnVlanXlatePortGroupIdMasked() { |
| 443 | return new OFOxmBsnVlanXlatePortGroupIdMaskedVer12.Builder(); |
| 444 | } |
| 445 | public OFOxmBsnVlanXlatePortGroupIdMasked bsnVlanXlatePortGroupIdMasked(ClassId value, ClassId mask) { |
| 446 | return new OFOxmBsnVlanXlatePortGroupIdMaskedVer12( |
| 447 | value, |
| 448 | mask |
| 449 | ); |
| 450 | } |
| 451 | |
| 452 | public OFOxmBsnVrf.Builder buildBsnVrf() { |
| 453 | return new OFOxmBsnVrfVer12.Builder(); |
| 454 | } |
| 455 | public OFOxmBsnVrf bsnVrf(VRF value) { |
| 456 | return new OFOxmBsnVrfVer12( |
| 457 | value |
| 458 | ); |
| 459 | } |
| 460 | |
| 461 | public OFOxmBsnVrfMasked.Builder buildBsnVrfMasked() { |
| 462 | return new OFOxmBsnVrfMaskedVer12.Builder(); |
| 463 | } |
| 464 | public OFOxmBsnVrfMasked bsnVrfMasked(VRF value, VRF mask) { |
| 465 | return new OFOxmBsnVrfMaskedVer12( |
| 466 | value, |
| 467 | mask |
| 468 | ); |
| 469 | } |
| 470 | |
| 471 | public OFOxmEthDst.Builder buildEthDst() { |
| 472 | return new OFOxmEthDstVer12.Builder(); |
| 473 | } |
| 474 | public OFOxmEthDst ethDst(MacAddress value) { |
| 475 | return new OFOxmEthDstVer12( |
| 476 | value |
| 477 | ); |
| 478 | } |
| 479 | |
| 480 | public OFOxmEthDstMasked.Builder buildEthDstMasked() { |
| 481 | return new OFOxmEthDstMaskedVer12.Builder(); |
| 482 | } |
| 483 | public OFOxmEthDstMasked ethDstMasked(MacAddress value, MacAddress mask) { |
| 484 | return new OFOxmEthDstMaskedVer12( |
| 485 | value, |
| 486 | mask |
| 487 | ); |
| 488 | } |
| 489 | |
| 490 | public OFOxmEthSrc.Builder buildEthSrc() { |
| 491 | return new OFOxmEthSrcVer12.Builder(); |
| 492 | } |
| 493 | public OFOxmEthSrc ethSrc(MacAddress value) { |
| 494 | return new OFOxmEthSrcVer12( |
| 495 | value |
| 496 | ); |
| 497 | } |
| 498 | |
| 499 | public OFOxmEthSrcMasked.Builder buildEthSrcMasked() { |
| 500 | return new OFOxmEthSrcMaskedVer12.Builder(); |
| 501 | } |
| 502 | public OFOxmEthSrcMasked ethSrcMasked(MacAddress value, MacAddress mask) { |
| 503 | return new OFOxmEthSrcMaskedVer12( |
| 504 | value, |
| 505 | mask |
| 506 | ); |
| 507 | } |
| 508 | |
| 509 | public OFOxmEthType.Builder buildEthType() { |
| 510 | return new OFOxmEthTypeVer12.Builder(); |
| 511 | } |
| 512 | public OFOxmEthType ethType(EthType value) { |
| 513 | return new OFOxmEthTypeVer12( |
| 514 | value |
| 515 | ); |
| 516 | } |
| 517 | |
| 518 | public OFOxmEthTypeMasked.Builder buildEthTypeMasked() { |
| 519 | return new OFOxmEthTypeMaskedVer12.Builder(); |
| 520 | } |
| 521 | public OFOxmEthTypeMasked ethTypeMasked(EthType value, EthType mask) { |
| 522 | return new OFOxmEthTypeMaskedVer12( |
| 523 | value, |
| 524 | mask |
| 525 | ); |
| 526 | } |
| 527 | |
| 528 | public OFOxmIcmpv4Code.Builder buildIcmpv4Code() { |
| 529 | return new OFOxmIcmpv4CodeVer12.Builder(); |
| 530 | } |
| 531 | public OFOxmIcmpv4Code icmpv4Code(ICMPv4Code value) { |
| 532 | return new OFOxmIcmpv4CodeVer12( |
| 533 | value |
| 534 | ); |
| 535 | } |
| 536 | |
| 537 | public OFOxmIcmpv4CodeMasked.Builder buildIcmpv4CodeMasked() { |
| 538 | return new OFOxmIcmpv4CodeMaskedVer12.Builder(); |
| 539 | } |
| 540 | public OFOxmIcmpv4CodeMasked icmpv4CodeMasked(ICMPv4Code value, ICMPv4Code mask) { |
| 541 | return new OFOxmIcmpv4CodeMaskedVer12( |
| 542 | value, |
| 543 | mask |
| 544 | ); |
| 545 | } |
| 546 | |
| 547 | public OFOxmIcmpv4Type.Builder buildIcmpv4Type() { |
| 548 | return new OFOxmIcmpv4TypeVer12.Builder(); |
| 549 | } |
| 550 | public OFOxmIcmpv4Type icmpv4Type(ICMPv4Type value) { |
| 551 | return new OFOxmIcmpv4TypeVer12( |
| 552 | value |
| 553 | ); |
| 554 | } |
| 555 | |
| 556 | public OFOxmIcmpv4TypeMasked.Builder buildIcmpv4TypeMasked() { |
| 557 | return new OFOxmIcmpv4TypeMaskedVer12.Builder(); |
| 558 | } |
| 559 | public OFOxmIcmpv4TypeMasked icmpv4TypeMasked(ICMPv4Type value, ICMPv4Type mask) { |
| 560 | return new OFOxmIcmpv4TypeMaskedVer12( |
| 561 | value, |
| 562 | mask |
| 563 | ); |
| 564 | } |
| 565 | |
| 566 | public OFOxmIcmpv6Code.Builder buildIcmpv6Code() { |
| 567 | return new OFOxmIcmpv6CodeVer12.Builder(); |
| 568 | } |
| 569 | public OFOxmIcmpv6Code icmpv6Code(U8 value) { |
| 570 | return new OFOxmIcmpv6CodeVer12( |
| 571 | value |
| 572 | ); |
| 573 | } |
| 574 | |
| 575 | public OFOxmIcmpv6CodeMasked.Builder buildIcmpv6CodeMasked() { |
| 576 | return new OFOxmIcmpv6CodeMaskedVer12.Builder(); |
| 577 | } |
| 578 | public OFOxmIcmpv6CodeMasked icmpv6CodeMasked(U8 value, U8 mask) { |
| 579 | return new OFOxmIcmpv6CodeMaskedVer12( |
| 580 | value, |
| 581 | mask |
| 582 | ); |
| 583 | } |
| 584 | |
| 585 | public OFOxmIcmpv6Type.Builder buildIcmpv6Type() { |
| 586 | return new OFOxmIcmpv6TypeVer12.Builder(); |
| 587 | } |
| 588 | public OFOxmIcmpv6Type icmpv6Type(U8 value) { |
| 589 | return new OFOxmIcmpv6TypeVer12( |
| 590 | value |
| 591 | ); |
| 592 | } |
| 593 | |
| 594 | public OFOxmIcmpv6TypeMasked.Builder buildIcmpv6TypeMasked() { |
| 595 | return new OFOxmIcmpv6TypeMaskedVer12.Builder(); |
| 596 | } |
| 597 | public OFOxmIcmpv6TypeMasked icmpv6TypeMasked(U8 value, U8 mask) { |
| 598 | return new OFOxmIcmpv6TypeMaskedVer12( |
| 599 | value, |
| 600 | mask |
| 601 | ); |
| 602 | } |
| 603 | |
| 604 | public OFOxmInPhyPort.Builder buildInPhyPort() { |
| 605 | return new OFOxmInPhyPortVer12.Builder(); |
| 606 | } |
| 607 | public OFOxmInPhyPort inPhyPort(OFPort value) { |
| 608 | return new OFOxmInPhyPortVer12( |
| 609 | value |
| 610 | ); |
| 611 | } |
| 612 | |
| 613 | public OFOxmInPhyPortMasked.Builder buildInPhyPortMasked() { |
| 614 | return new OFOxmInPhyPortMaskedVer12.Builder(); |
| 615 | } |
| 616 | public OFOxmInPhyPortMasked inPhyPortMasked(OFPort value, OFPort mask) { |
| 617 | return new OFOxmInPhyPortMaskedVer12( |
| 618 | value, |
| 619 | mask |
| 620 | ); |
| 621 | } |
| 622 | |
| 623 | public OFOxmInPort.Builder buildInPort() { |
| 624 | return new OFOxmInPortVer12.Builder(); |
| 625 | } |
| 626 | public OFOxmInPort inPort(OFPort value) { |
| 627 | return new OFOxmInPortVer12( |
| 628 | value |
| 629 | ); |
| 630 | } |
| 631 | |
| 632 | public OFOxmInPortMasked.Builder buildInPortMasked() { |
| 633 | return new OFOxmInPortMaskedVer12.Builder(); |
| 634 | } |
| 635 | public OFOxmInPortMasked inPortMasked(OFPort value, OFPort mask) { |
| 636 | return new OFOxmInPortMaskedVer12( |
| 637 | value, |
| 638 | mask |
| 639 | ); |
| 640 | } |
| 641 | |
| 642 | public OFOxmIpDscp.Builder buildIpDscp() { |
| 643 | return new OFOxmIpDscpVer12.Builder(); |
| 644 | } |
| 645 | public OFOxmIpDscp ipDscp(IpDscp value) { |
| 646 | return new OFOxmIpDscpVer12( |
| 647 | value |
| 648 | ); |
| 649 | } |
| 650 | |
| 651 | public OFOxmIpDscpMasked.Builder buildIpDscpMasked() { |
| 652 | return new OFOxmIpDscpMaskedVer12.Builder(); |
| 653 | } |
| 654 | public OFOxmIpDscpMasked ipDscpMasked(IpDscp value, IpDscp mask) { |
| 655 | return new OFOxmIpDscpMaskedVer12( |
| 656 | value, |
| 657 | mask |
| 658 | ); |
| 659 | } |
| 660 | |
| 661 | public OFOxmIpEcn.Builder buildIpEcn() { |
| 662 | return new OFOxmIpEcnVer12.Builder(); |
| 663 | } |
| 664 | public OFOxmIpEcn ipEcn(IpEcn value) { |
| 665 | return new OFOxmIpEcnVer12( |
| 666 | value |
| 667 | ); |
| 668 | } |
| 669 | |
| 670 | public OFOxmIpEcnMasked.Builder buildIpEcnMasked() { |
| 671 | return new OFOxmIpEcnMaskedVer12.Builder(); |
| 672 | } |
| 673 | public OFOxmIpEcnMasked ipEcnMasked(IpEcn value, IpEcn mask) { |
| 674 | return new OFOxmIpEcnMaskedVer12( |
| 675 | value, |
| 676 | mask |
| 677 | ); |
| 678 | } |
| 679 | |
| 680 | public OFOxmIpProto.Builder buildIpProto() { |
| 681 | return new OFOxmIpProtoVer12.Builder(); |
| 682 | } |
| 683 | public OFOxmIpProto ipProto(IpProtocol value) { |
| 684 | return new OFOxmIpProtoVer12( |
| 685 | value |
| 686 | ); |
| 687 | } |
| 688 | |
| 689 | public OFOxmIpProtoMasked.Builder buildIpProtoMasked() { |
| 690 | return new OFOxmIpProtoMaskedVer12.Builder(); |
| 691 | } |
| 692 | public OFOxmIpProtoMasked ipProtoMasked(IpProtocol value, IpProtocol mask) { |
| 693 | return new OFOxmIpProtoMaskedVer12( |
| 694 | value, |
| 695 | mask |
| 696 | ); |
| 697 | } |
| 698 | |
| 699 | public OFOxmIpv4Dst.Builder buildIpv4Dst() { |
| 700 | return new OFOxmIpv4DstVer12.Builder(); |
| 701 | } |
| 702 | public OFOxmIpv4Dst ipv4Dst(IPv4Address value) { |
| 703 | return new OFOxmIpv4DstVer12( |
| 704 | value |
| 705 | ); |
| 706 | } |
| 707 | |
| 708 | public OFOxmIpv4DstMasked.Builder buildIpv4DstMasked() { |
| 709 | return new OFOxmIpv4DstMaskedVer12.Builder(); |
| 710 | } |
| 711 | public OFOxmIpv4DstMasked ipv4DstMasked(IPv4Address value, IPv4Address mask) { |
| 712 | return new OFOxmIpv4DstMaskedVer12( |
| 713 | value, |
| 714 | mask |
| 715 | ); |
| 716 | } |
| 717 | |
| 718 | public OFOxmIpv4Src.Builder buildIpv4Src() { |
| 719 | return new OFOxmIpv4SrcVer12.Builder(); |
| 720 | } |
| 721 | public OFOxmIpv4Src ipv4Src(IPv4Address value) { |
| 722 | return new OFOxmIpv4SrcVer12( |
| 723 | value |
| 724 | ); |
| 725 | } |
| 726 | |
| 727 | public OFOxmIpv4SrcMasked.Builder buildIpv4SrcMasked() { |
| 728 | return new OFOxmIpv4SrcMaskedVer12.Builder(); |
| 729 | } |
| 730 | public OFOxmIpv4SrcMasked ipv4SrcMasked(IPv4Address value, IPv4Address mask) { |
| 731 | return new OFOxmIpv4SrcMaskedVer12( |
| 732 | value, |
| 733 | mask |
| 734 | ); |
| 735 | } |
| 736 | |
| 737 | public OFOxmIpv6Dst.Builder buildIpv6Dst() { |
| 738 | return new OFOxmIpv6DstVer12.Builder(); |
| 739 | } |
| 740 | public OFOxmIpv6Dst ipv6Dst(IPv6Address value) { |
| 741 | return new OFOxmIpv6DstVer12( |
| 742 | value |
| 743 | ); |
| 744 | } |
| 745 | |
| 746 | public OFOxmIpv6DstMasked.Builder buildIpv6DstMasked() { |
| 747 | return new OFOxmIpv6DstMaskedVer12.Builder(); |
| 748 | } |
| 749 | public OFOxmIpv6DstMasked ipv6DstMasked(IPv6Address value, IPv6Address mask) { |
| 750 | return new OFOxmIpv6DstMaskedVer12( |
| 751 | value, |
| 752 | mask |
| 753 | ); |
| 754 | } |
| 755 | |
| 756 | public OFOxmIpv6Flabel.Builder buildIpv6Flabel() { |
| 757 | return new OFOxmIpv6FlabelVer12.Builder(); |
| 758 | } |
| 759 | public OFOxmIpv6Flabel ipv6Flabel(IPv6FlowLabel value) { |
| 760 | return new OFOxmIpv6FlabelVer12( |
| 761 | value |
| 762 | ); |
| 763 | } |
| 764 | |
| 765 | public OFOxmIpv6FlabelMasked.Builder buildIpv6FlabelMasked() { |
| 766 | return new OFOxmIpv6FlabelMaskedVer12.Builder(); |
| 767 | } |
| 768 | public OFOxmIpv6FlabelMasked ipv6FlabelMasked(IPv6FlowLabel value, IPv6FlowLabel mask) { |
| 769 | return new OFOxmIpv6FlabelMaskedVer12( |
| 770 | value, |
| 771 | mask |
| 772 | ); |
| 773 | } |
| 774 | |
| 775 | public OFOxmIpv6NdSll.Builder buildIpv6NdSll() { |
| 776 | return new OFOxmIpv6NdSllVer12.Builder(); |
| 777 | } |
| 778 | public OFOxmIpv6NdSll ipv6NdSll(MacAddress value) { |
| 779 | return new OFOxmIpv6NdSllVer12( |
| 780 | value |
| 781 | ); |
| 782 | } |
| 783 | |
| 784 | public OFOxmIpv6NdSllMasked.Builder buildIpv6NdSllMasked() { |
| 785 | return new OFOxmIpv6NdSllMaskedVer12.Builder(); |
| 786 | } |
| 787 | public OFOxmIpv6NdSllMasked ipv6NdSllMasked(MacAddress value, MacAddress mask) { |
| 788 | return new OFOxmIpv6NdSllMaskedVer12( |
| 789 | value, |
| 790 | mask |
| 791 | ); |
| 792 | } |
| 793 | |
| 794 | public OFOxmIpv6NdTarget.Builder buildIpv6NdTarget() { |
| 795 | return new OFOxmIpv6NdTargetVer12.Builder(); |
| 796 | } |
| 797 | public OFOxmIpv6NdTarget ipv6NdTarget(IPv6Address value) { |
| 798 | return new OFOxmIpv6NdTargetVer12( |
| 799 | value |
| 800 | ); |
| 801 | } |
| 802 | |
| 803 | public OFOxmIpv6NdTargetMasked.Builder buildIpv6NdTargetMasked() { |
| 804 | return new OFOxmIpv6NdTargetMaskedVer12.Builder(); |
| 805 | } |
| 806 | public OFOxmIpv6NdTargetMasked ipv6NdTargetMasked(IPv6Address value, IPv6Address mask) { |
| 807 | return new OFOxmIpv6NdTargetMaskedVer12( |
| 808 | value, |
| 809 | mask |
| 810 | ); |
| 811 | } |
| 812 | |
| 813 | public OFOxmIpv6NdTll.Builder buildIpv6NdTll() { |
| 814 | return new OFOxmIpv6NdTllVer12.Builder(); |
| 815 | } |
| 816 | public OFOxmIpv6NdTll ipv6NdTll(MacAddress value) { |
| 817 | return new OFOxmIpv6NdTllVer12( |
| 818 | value |
| 819 | ); |
| 820 | } |
| 821 | |
| 822 | public OFOxmIpv6NdTllMasked.Builder buildIpv6NdTllMasked() { |
| 823 | return new OFOxmIpv6NdTllMaskedVer12.Builder(); |
| 824 | } |
| 825 | public OFOxmIpv6NdTllMasked ipv6NdTllMasked(MacAddress value, MacAddress mask) { |
| 826 | return new OFOxmIpv6NdTllMaskedVer12( |
| 827 | value, |
| 828 | mask |
| 829 | ); |
| 830 | } |
| 831 | |
| 832 | public OFOxmIpv6Src.Builder buildIpv6Src() { |
| 833 | return new OFOxmIpv6SrcVer12.Builder(); |
| 834 | } |
| 835 | public OFOxmIpv6Src ipv6Src(IPv6Address value) { |
| 836 | return new OFOxmIpv6SrcVer12( |
| 837 | value |
| 838 | ); |
| 839 | } |
| 840 | |
| 841 | public OFOxmIpv6SrcMasked.Builder buildIpv6SrcMasked() { |
| 842 | return new OFOxmIpv6SrcMaskedVer12.Builder(); |
| 843 | } |
| 844 | public OFOxmIpv6SrcMasked ipv6SrcMasked(IPv6Address value, IPv6Address mask) { |
| 845 | return new OFOxmIpv6SrcMaskedVer12( |
| 846 | value, |
| 847 | mask |
| 848 | ); |
| 849 | } |
| 850 | |
| 851 | public OFOxmMetadata.Builder buildMetadata() { |
| 852 | return new OFOxmMetadataVer12.Builder(); |
| 853 | } |
| 854 | public OFOxmMetadata metadata(OFMetadata value) { |
| 855 | return new OFOxmMetadataVer12( |
| 856 | value |
| 857 | ); |
| 858 | } |
| 859 | |
| 860 | public OFOxmMetadataMasked.Builder buildMetadataMasked() { |
| 861 | return new OFOxmMetadataMaskedVer12.Builder(); |
| 862 | } |
| 863 | public OFOxmMetadataMasked metadataMasked(OFMetadata value, OFMetadata mask) { |
| 864 | return new OFOxmMetadataMaskedVer12( |
| 865 | value, |
| 866 | mask |
| 867 | ); |
| 868 | } |
| 869 | |
| 870 | public OFOxmMplsLabel.Builder buildMplsLabel() { |
| 871 | return new OFOxmMplsLabelVer12.Builder(); |
| 872 | } |
| 873 | public OFOxmMplsLabel mplsLabel(U32 value) { |
| 874 | return new OFOxmMplsLabelVer12( |
| 875 | value |
| 876 | ); |
| 877 | } |
| 878 | |
| 879 | public OFOxmMplsLabelMasked.Builder buildMplsLabelMasked() { |
| 880 | return new OFOxmMplsLabelMaskedVer12.Builder(); |
| 881 | } |
| 882 | public OFOxmMplsLabelMasked mplsLabelMasked(U32 value, U32 mask) { |
| 883 | return new OFOxmMplsLabelMaskedVer12( |
| 884 | value, |
| 885 | mask |
| 886 | ); |
| 887 | } |
| 888 | |
| 889 | public OFOxmMplsTc.Builder buildMplsTc() { |
| 890 | return new OFOxmMplsTcVer12.Builder(); |
| 891 | } |
| 892 | public OFOxmMplsTc mplsTc(U8 value) { |
| 893 | return new OFOxmMplsTcVer12( |
| 894 | value |
| 895 | ); |
| 896 | } |
| 897 | |
| 898 | public OFOxmMplsTcMasked.Builder buildMplsTcMasked() { |
| 899 | return new OFOxmMplsTcMaskedVer12.Builder(); |
| 900 | } |
| 901 | public OFOxmMplsTcMasked mplsTcMasked(U8 value, U8 mask) { |
| 902 | return new OFOxmMplsTcMaskedVer12( |
| 903 | value, |
| 904 | mask |
| 905 | ); |
| 906 | } |
| 907 | |
| 908 | public OFOxmSctpDst.Builder buildSctpDst() { |
| 909 | return new OFOxmSctpDstVer12.Builder(); |
| 910 | } |
| 911 | public OFOxmSctpDst sctpDst(TransportPort value) { |
| 912 | return new OFOxmSctpDstVer12( |
| 913 | value |
| 914 | ); |
| 915 | } |
| 916 | |
| 917 | public OFOxmSctpDstMasked.Builder buildSctpDstMasked() { |
| 918 | return new OFOxmSctpDstMaskedVer12.Builder(); |
| 919 | } |
| 920 | public OFOxmSctpDstMasked sctpDstMasked(TransportPort value, TransportPort mask) { |
| 921 | return new OFOxmSctpDstMaskedVer12( |
| 922 | value, |
| 923 | mask |
| 924 | ); |
| 925 | } |
| 926 | |
| 927 | public OFOxmSctpSrc.Builder buildSctpSrc() { |
| 928 | return new OFOxmSctpSrcVer12.Builder(); |
| 929 | } |
| 930 | public OFOxmSctpSrc sctpSrc(TransportPort value) { |
| 931 | return new OFOxmSctpSrcVer12( |
| 932 | value |
| 933 | ); |
| 934 | } |
| 935 | |
| 936 | public OFOxmSctpSrcMasked.Builder buildSctpSrcMasked() { |
| 937 | return new OFOxmSctpSrcMaskedVer12.Builder(); |
| 938 | } |
| 939 | public OFOxmSctpSrcMasked sctpSrcMasked(TransportPort value, TransportPort mask) { |
| 940 | return new OFOxmSctpSrcMaskedVer12( |
| 941 | value, |
| 942 | mask |
| 943 | ); |
| 944 | } |
| 945 | |
| 946 | public OFOxmTcpDst.Builder buildTcpDst() { |
| 947 | return new OFOxmTcpDstVer12.Builder(); |
| 948 | } |
| 949 | public OFOxmTcpDst tcpDst(TransportPort value) { |
| 950 | return new OFOxmTcpDstVer12( |
| 951 | value |
| 952 | ); |
| 953 | } |
| 954 | |
| 955 | public OFOxmTcpDstMasked.Builder buildTcpDstMasked() { |
| 956 | return new OFOxmTcpDstMaskedVer12.Builder(); |
| 957 | } |
| 958 | public OFOxmTcpDstMasked tcpDstMasked(TransportPort value, TransportPort mask) { |
| 959 | return new OFOxmTcpDstMaskedVer12( |
| 960 | value, |
| 961 | mask |
| 962 | ); |
| 963 | } |
| 964 | |
| 965 | public OFOxmTcpSrc.Builder buildTcpSrc() { |
| 966 | return new OFOxmTcpSrcVer12.Builder(); |
| 967 | } |
| 968 | public OFOxmTcpSrc tcpSrc(TransportPort value) { |
| 969 | return new OFOxmTcpSrcVer12( |
| 970 | value |
| 971 | ); |
| 972 | } |
| 973 | |
| 974 | public OFOxmTcpSrcMasked.Builder buildTcpSrcMasked() { |
| 975 | return new OFOxmTcpSrcMaskedVer12.Builder(); |
| 976 | } |
| 977 | public OFOxmTcpSrcMasked tcpSrcMasked(TransportPort value, TransportPort mask) { |
| 978 | return new OFOxmTcpSrcMaskedVer12( |
| 979 | value, |
| 980 | mask |
| 981 | ); |
| 982 | } |
| 983 | |
| 984 | public OFOxmUdpDst.Builder buildUdpDst() { |
| 985 | return new OFOxmUdpDstVer12.Builder(); |
| 986 | } |
| 987 | public OFOxmUdpDst udpDst(TransportPort value) { |
| 988 | return new OFOxmUdpDstVer12( |
| 989 | value |
| 990 | ); |
| 991 | } |
| 992 | |
| 993 | public OFOxmUdpDstMasked.Builder buildUdpDstMasked() { |
| 994 | return new OFOxmUdpDstMaskedVer12.Builder(); |
| 995 | } |
| 996 | public OFOxmUdpDstMasked udpDstMasked(TransportPort value, TransportPort mask) { |
| 997 | return new OFOxmUdpDstMaskedVer12( |
| 998 | value, |
| 999 | mask |
| 1000 | ); |
| 1001 | } |
| 1002 | |
| 1003 | public OFOxmUdpSrc.Builder buildUdpSrc() { |
| 1004 | return new OFOxmUdpSrcVer12.Builder(); |
| 1005 | } |
| 1006 | public OFOxmUdpSrc udpSrc(TransportPort value) { |
| 1007 | return new OFOxmUdpSrcVer12( |
| 1008 | value |
| 1009 | ); |
| 1010 | } |
| 1011 | |
| 1012 | public OFOxmUdpSrcMasked.Builder buildUdpSrcMasked() { |
| 1013 | return new OFOxmUdpSrcMaskedVer12.Builder(); |
| 1014 | } |
| 1015 | public OFOxmUdpSrcMasked udpSrcMasked(TransportPort value, TransportPort mask) { |
| 1016 | return new OFOxmUdpSrcMaskedVer12( |
| 1017 | value, |
| 1018 | mask |
| 1019 | ); |
| 1020 | } |
| 1021 | |
| 1022 | public OFOxmVlanPcp.Builder buildVlanPcp() { |
| 1023 | return new OFOxmVlanPcpVer12.Builder(); |
| 1024 | } |
| 1025 | public OFOxmVlanPcp vlanPcp(VlanPcp value) { |
| 1026 | return new OFOxmVlanPcpVer12( |
| 1027 | value |
| 1028 | ); |
| 1029 | } |
| 1030 | |
| 1031 | public OFOxmVlanPcpMasked.Builder buildVlanPcpMasked() { |
| 1032 | return new OFOxmVlanPcpMaskedVer12.Builder(); |
| 1033 | } |
| 1034 | public OFOxmVlanPcpMasked vlanPcpMasked(VlanPcp value, VlanPcp mask) { |
| 1035 | return new OFOxmVlanPcpMaskedVer12( |
| 1036 | value, |
| 1037 | mask |
| 1038 | ); |
| 1039 | } |
| 1040 | |
| 1041 | public OFOxmVlanVid.Builder buildVlanVid() { |
| 1042 | return new OFOxmVlanVidVer12.Builder(); |
| 1043 | } |
| 1044 | public OFOxmVlanVid vlanVid(OFVlanVidMatch value) { |
| 1045 | return new OFOxmVlanVidVer12( |
| 1046 | value |
| 1047 | ); |
| 1048 | } |
| 1049 | |
| 1050 | public OFOxmVlanVidMasked.Builder buildVlanVidMasked() { |
| 1051 | return new OFOxmVlanVidMaskedVer12.Builder(); |
| 1052 | } |
| 1053 | public OFOxmVlanVidMasked vlanVidMasked(OFVlanVidMatch value, OFVlanVidMatch mask) { |
| 1054 | return new OFOxmVlanVidMaskedVer12( |
| 1055 | value, |
| 1056 | mask |
| 1057 | ); |
| 1058 | } |
| 1059 | |
| 1060 | public OFOxmTunnelId.Builder buildTunnelId() { |
| 1061 | throw new UnsupportedOperationException("OFOxmTunnelId not supported in version 1.2"); |
| 1062 | } |
| 1063 | public OFOxmTunnelId tunnelId(U64 value) { |
| 1064 | throw new UnsupportedOperationException("OFOxmTunnelId not supported in version 1.2"); |
| 1065 | } |
| 1066 | |
| 1067 | public OFOxmTunnelIdMasked.Builder buildTunnelIdMasked() { |
| 1068 | throw new UnsupportedOperationException("OFOxmTunnelIdMasked not supported in version 1.2"); |
| 1069 | } |
| 1070 | public OFOxmTunnelIdMasked tunnelIdMasked(U64 value, U64 mask) { |
| 1071 | throw new UnsupportedOperationException("OFOxmTunnelIdMasked not supported in version 1.2"); |
| 1072 | } |
| 1073 | |
| 1074 | public OFMessageReader<OFOxm<?>> getReader() { |
| 1075 | return OFOxmVer12.READER; |
| 1076 | } |
| 1077 | |
| 1078 | @SuppressWarnings("unchecked") |
| 1079 | public <F extends OFValueType<F>> OFOxm<F> fromValue(F value, MatchField<F> field) { |
| 1080 | switch (field.id) { |
| 1081 | case ARP_OP: |
| 1082 | return (OFOxm<F>)((Object)arpOp((ArpOpcode)((Object)value))); |
| 1083 | case ARP_SHA: |
| 1084 | return (OFOxm<F>)((Object)arpSha((MacAddress)((Object)value))); |
| 1085 | case ARP_SPA: |
| 1086 | return (OFOxm<F>)((Object)arpSpa((IPv4Address)((Object)value))); |
| 1087 | case ARP_THA: |
| 1088 | return (OFOxm<F>)((Object)arpTha((MacAddress)((Object)value))); |
| 1089 | case ARP_TPA: |
| 1090 | return (OFOxm<F>)((Object)arpTpa((IPv4Address)((Object)value))); |
| 1091 | case BSN_EGR_PORT_GROUP_ID: |
| 1092 | return (OFOxm<F>)((Object)bsnEgrPortGroupId((ClassId)((Object)value))); |
| 1093 | case BSN_GLOBAL_VRF_ALLOWED: |
| 1094 | return (OFOxm<F>)((Object)bsnGlobalVrfAllowed((OFBooleanValue)((Object)value))); |
| 1095 | case BSN_IN_PORTS_128: |
| 1096 | return (OFOxm<F>)((Object)bsnInPorts128((OFBitMask128)((Object)value))); |
| 1097 | case BSN_L3_DST_CLASS_ID: |
| 1098 | return (OFOxm<F>)((Object)bsnL3DstClassId((ClassId)((Object)value))); |
| 1099 | case BSN_L3_INTERFACE_CLASS_ID: |
| 1100 | return (OFOxm<F>)((Object)bsnL3InterfaceClassId((ClassId)((Object)value))); |
| 1101 | case BSN_L3_SRC_CLASS_ID: |
| 1102 | return (OFOxm<F>)((Object)bsnL3SrcClassId((ClassId)((Object)value))); |
| 1103 | case BSN_LAG_ID: |
| 1104 | return (OFOxm<F>)((Object)bsnLagId((LagId)((Object)value))); |
| 1105 | case BSN_TCP_FLAGS: |
| 1106 | return (OFOxm<F>)((Object)bsnTcpFlags((U16)((Object)value))); |
| 1107 | case BSN_UDF0: |
| 1108 | return (OFOxm<F>)((Object)bsnUdf0((UDF)((Object)value))); |
| 1109 | case BSN_UDF1: |
| 1110 | return (OFOxm<F>)((Object)bsnUdf1((UDF)((Object)value))); |
| 1111 | case BSN_UDF2: |
| 1112 | return (OFOxm<F>)((Object)bsnUdf2((UDF)((Object)value))); |
| 1113 | case BSN_UDF3: |
| 1114 | return (OFOxm<F>)((Object)bsnUdf3((UDF)((Object)value))); |
| 1115 | case BSN_UDF4: |
| 1116 | return (OFOxm<F>)((Object)bsnUdf4((UDF)((Object)value))); |
| 1117 | case BSN_UDF5: |
| 1118 | return (OFOxm<F>)((Object)bsnUdf5((UDF)((Object)value))); |
| 1119 | case BSN_UDF6: |
| 1120 | return (OFOxm<F>)((Object)bsnUdf6((UDF)((Object)value))); |
| 1121 | case BSN_UDF7: |
| 1122 | return (OFOxm<F>)((Object)bsnUdf7((UDF)((Object)value))); |
| 1123 | case BSN_VLAN_XLATE_PORT_GROUP_ID: |
| 1124 | return (OFOxm<F>)((Object)bsnVlanXlatePortGroupId((ClassId)((Object)value))); |
| 1125 | case BSN_VRF: |
| 1126 | return (OFOxm<F>)((Object)bsnVrf((VRF)((Object)value))); |
| 1127 | case ETH_DST: |
| 1128 | return (OFOxm<F>)((Object)ethDst((MacAddress)((Object)value))); |
| 1129 | case ETH_SRC: |
| 1130 | return (OFOxm<F>)((Object)ethSrc((MacAddress)((Object)value))); |
| 1131 | case ETH_TYPE: |
| 1132 | return (OFOxm<F>)((Object)ethType((EthType)((Object)value))); |
| 1133 | case ICMPV4_CODE: |
| 1134 | return (OFOxm<F>)((Object)icmpv4Code((ICMPv4Code)((Object)value))); |
| 1135 | case ICMPV4_TYPE: |
| 1136 | return (OFOxm<F>)((Object)icmpv4Type((ICMPv4Type)((Object)value))); |
| 1137 | case ICMPV6_CODE: |
| 1138 | return (OFOxm<F>)((Object)icmpv6Code((U8)((Object)value))); |
| 1139 | case ICMPV6_TYPE: |
| 1140 | return (OFOxm<F>)((Object)icmpv6Type((U8)((Object)value))); |
| 1141 | case IN_PHY_PORT: |
| 1142 | return (OFOxm<F>)((Object)inPhyPort((OFPort)((Object)value))); |
| 1143 | case IN_PORT: |
| 1144 | return (OFOxm<F>)((Object)inPort((OFPort)((Object)value))); |
| 1145 | case IP_DSCP: |
| 1146 | return (OFOxm<F>)((Object)ipDscp((IpDscp)((Object)value))); |
| 1147 | case IP_ECN: |
| 1148 | return (OFOxm<F>)((Object)ipEcn((IpEcn)((Object)value))); |
| 1149 | case IP_PROTO: |
| 1150 | return (OFOxm<F>)((Object)ipProto((IpProtocol)((Object)value))); |
| 1151 | case IPV4_DST: |
| 1152 | return (OFOxm<F>)((Object)ipv4Dst((IPv4Address)((Object)value))); |
| 1153 | case IPV4_SRC: |
| 1154 | return (OFOxm<F>)((Object)ipv4Src((IPv4Address)((Object)value))); |
| 1155 | case IPV6_DST: |
| 1156 | return (OFOxm<F>)((Object)ipv6Dst((IPv6Address)((Object)value))); |
| 1157 | case IPV6_FLABEL: |
| 1158 | return (OFOxm<F>)((Object)ipv6Flabel((IPv6FlowLabel)((Object)value))); |
| 1159 | case IPV6_ND_SLL: |
| 1160 | return (OFOxm<F>)((Object)ipv6NdSll((MacAddress)((Object)value))); |
| 1161 | case IPV6_ND_TARGET: |
| 1162 | return (OFOxm<F>)((Object)ipv6NdTarget((IPv6Address)((Object)value))); |
| 1163 | case IPV6_ND_TLL: |
| 1164 | return (OFOxm<F>)((Object)ipv6NdTll((MacAddress)((Object)value))); |
| 1165 | case IPV6_SRC: |
| 1166 | return (OFOxm<F>)((Object)ipv6Src((IPv6Address)((Object)value))); |
| 1167 | case METADATA: |
| 1168 | return (OFOxm<F>)((Object)metadata((OFMetadata)((Object)value))); |
| 1169 | case MPLS_LABEL: |
| 1170 | return (OFOxm<F>)((Object)mplsLabel((U32)((Object)value))); |
| 1171 | case MPLS_TC: |
| 1172 | return (OFOxm<F>)((Object)mplsTc((U8)((Object)value))); |
| 1173 | case SCTP_DST: |
| 1174 | return (OFOxm<F>)((Object)sctpDst((TransportPort)((Object)value))); |
| 1175 | case SCTP_SRC: |
| 1176 | return (OFOxm<F>)((Object)sctpSrc((TransportPort)((Object)value))); |
| 1177 | case TCP_DST: |
| 1178 | return (OFOxm<F>)((Object)tcpDst((TransportPort)((Object)value))); |
| 1179 | case TCP_SRC: |
| 1180 | return (OFOxm<F>)((Object)tcpSrc((TransportPort)((Object)value))); |
| 1181 | case UDP_DST: |
| 1182 | return (OFOxm<F>)((Object)udpDst((TransportPort)((Object)value))); |
| 1183 | case UDP_SRC: |
| 1184 | return (OFOxm<F>)((Object)udpSrc((TransportPort)((Object)value))); |
| 1185 | case VLAN_PCP: |
| 1186 | return (OFOxm<F>)((Object)vlanPcp((VlanPcp)((Object)value))); |
| 1187 | case VLAN_VID: |
| 1188 | return (OFOxm<F>)((Object)vlanVid((OFVlanVidMatch)((Object)value))); |
| 1189 | case TUNNEL_ID: |
| 1190 | return (OFOxm<F>)((Object)tunnelId((U64)((Object)value))); |
| 1191 | default: |
| 1192 | throw new IllegalArgumentException("No OXM known for match field " + field); |
| 1193 | } |
| 1194 | } |
| 1195 | |
| 1196 | @SuppressWarnings("unchecked") |
| 1197 | public <F extends OFValueType<F>> OFOxm<F> fromValueAndMask(F value, F mask, MatchField<F> field) { |
| 1198 | switch (field.id) { |
| 1199 | case ARP_OP: |
| 1200 | return (OFOxm<F>)((Object)arpOpMasked((ArpOpcode)((Object)value), (ArpOpcode)((Object)mask))); |
| 1201 | case ARP_SHA: |
| 1202 | return (OFOxm<F>)((Object)arpShaMasked((MacAddress)((Object)value), (MacAddress)((Object)mask))); |
| 1203 | case ARP_SPA: |
| 1204 | return (OFOxm<F>)((Object)arpSpaMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask))); |
| 1205 | case ARP_THA: |
| 1206 | return (OFOxm<F>)((Object)arpThaMasked((MacAddress)((Object)value), (MacAddress)((Object)mask))); |
| 1207 | case ARP_TPA: |
| 1208 | return (OFOxm<F>)((Object)arpTpaMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask))); |
| 1209 | case BSN_EGR_PORT_GROUP_ID: |
| 1210 | return (OFOxm<F>)((Object)bsnEgrPortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask))); |
| 1211 | case BSN_GLOBAL_VRF_ALLOWED: |
| 1212 | return (OFOxm<F>)((Object)bsnGlobalVrfAllowedMasked((OFBooleanValue)((Object)value), (OFBooleanValue)((Object)mask))); |
| 1213 | case BSN_IN_PORTS_128: |
| 1214 | return (OFOxm<F>)((Object)bsnInPorts128Masked((OFBitMask128)((Object)value), (OFBitMask128)((Object)mask))); |
| 1215 | case BSN_L3_DST_CLASS_ID: |
| 1216 | return (OFOxm<F>)((Object)bsnL3DstClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask))); |
| 1217 | case BSN_L3_INTERFACE_CLASS_ID: |
| 1218 | return (OFOxm<F>)((Object)bsnL3InterfaceClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask))); |
| 1219 | case BSN_L3_SRC_CLASS_ID: |
| 1220 | return (OFOxm<F>)((Object)bsnL3SrcClassIdMasked((ClassId)((Object)value), (ClassId)((Object)mask))); |
| 1221 | case BSN_LAG_ID: |
| 1222 | return (OFOxm<F>)((Object)bsnLagIdMasked((LagId)((Object)value), (LagId)((Object)mask))); |
| 1223 | case BSN_TCP_FLAGS: |
| 1224 | return (OFOxm<F>)((Object)bsnTcpFlagsMasked((U16)((Object)value), (U16)((Object)mask))); |
| 1225 | case BSN_UDF0: |
| 1226 | return (OFOxm<F>)((Object)bsnUdf0Masked((UDF)((Object)value), (UDF)((Object)mask))); |
| 1227 | case BSN_UDF1: |
| 1228 | return (OFOxm<F>)((Object)bsnUdf1Masked((UDF)((Object)value), (UDF)((Object)mask))); |
| 1229 | case BSN_UDF2: |
| 1230 | return (OFOxm<F>)((Object)bsnUdf2Masked((UDF)((Object)value), (UDF)((Object)mask))); |
| 1231 | case BSN_UDF3: |
| 1232 | return (OFOxm<F>)((Object)bsnUdf3Masked((UDF)((Object)value), (UDF)((Object)mask))); |
| 1233 | case BSN_UDF4: |
| 1234 | return (OFOxm<F>)((Object)bsnUdf4Masked((UDF)((Object)value), (UDF)((Object)mask))); |
| 1235 | case BSN_UDF5: |
| 1236 | return (OFOxm<F>)((Object)bsnUdf5Masked((UDF)((Object)value), (UDF)((Object)mask))); |
| 1237 | case BSN_UDF6: |
| 1238 | return (OFOxm<F>)((Object)bsnUdf6Masked((UDF)((Object)value), (UDF)((Object)mask))); |
| 1239 | case BSN_UDF7: |
| 1240 | return (OFOxm<F>)((Object)bsnUdf7Masked((UDF)((Object)value), (UDF)((Object)mask))); |
| 1241 | case BSN_VLAN_XLATE_PORT_GROUP_ID: |
| 1242 | return (OFOxm<F>)((Object)bsnVlanXlatePortGroupIdMasked((ClassId)((Object)value), (ClassId)((Object)mask))); |
| 1243 | case BSN_VRF: |
| 1244 | return (OFOxm<F>)((Object)bsnVrfMasked((VRF)((Object)value), (VRF)((Object)mask))); |
| 1245 | case ETH_DST: |
| 1246 | return (OFOxm<F>)((Object)ethDstMasked((MacAddress)((Object)value), (MacAddress)((Object)mask))); |
| 1247 | case ETH_SRC: |
| 1248 | return (OFOxm<F>)((Object)ethSrcMasked((MacAddress)((Object)value), (MacAddress)((Object)mask))); |
| 1249 | case ETH_TYPE: |
| 1250 | return (OFOxm<F>)((Object)ethTypeMasked((EthType)((Object)value), (EthType)((Object)mask))); |
| 1251 | case ICMPV4_CODE: |
| 1252 | return (OFOxm<F>)((Object)icmpv4CodeMasked((ICMPv4Code)((Object)value), (ICMPv4Code)((Object)mask))); |
| 1253 | case ICMPV4_TYPE: |
| 1254 | return (OFOxm<F>)((Object)icmpv4TypeMasked((ICMPv4Type)((Object)value), (ICMPv4Type)((Object)mask))); |
| 1255 | case ICMPV6_CODE: |
| 1256 | return (OFOxm<F>)((Object)icmpv6CodeMasked((U8)((Object)value), (U8)((Object)mask))); |
| 1257 | case ICMPV6_TYPE: |
| 1258 | return (OFOxm<F>)((Object)icmpv6TypeMasked((U8)((Object)value), (U8)((Object)mask))); |
| 1259 | case IN_PHY_PORT: |
| 1260 | return (OFOxm<F>)((Object)inPhyPortMasked((OFPort)((Object)value), (OFPort)((Object)mask))); |
| 1261 | case IN_PORT: |
| 1262 | return (OFOxm<F>)((Object)inPortMasked((OFPort)((Object)value), (OFPort)((Object)mask))); |
| 1263 | case IP_DSCP: |
| 1264 | return (OFOxm<F>)((Object)ipDscpMasked((IpDscp)((Object)value), (IpDscp)((Object)mask))); |
| 1265 | case IP_ECN: |
| 1266 | return (OFOxm<F>)((Object)ipEcnMasked((IpEcn)((Object)value), (IpEcn)((Object)mask))); |
| 1267 | case IP_PROTO: |
| 1268 | return (OFOxm<F>)((Object)ipProtoMasked((IpProtocol)((Object)value), (IpProtocol)((Object)mask))); |
| 1269 | case IPV4_DST: |
| 1270 | return (OFOxm<F>)((Object)ipv4DstMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask))); |
| 1271 | case IPV4_SRC: |
| 1272 | return (OFOxm<F>)((Object)ipv4SrcMasked((IPv4Address)((Object)value), (IPv4Address)((Object)mask))); |
| 1273 | case IPV6_DST: |
| 1274 | return (OFOxm<F>)((Object)ipv6DstMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask))); |
| 1275 | case IPV6_FLABEL: |
| 1276 | return (OFOxm<F>)((Object)ipv6FlabelMasked((IPv6FlowLabel)((Object)value), (IPv6FlowLabel)((Object)mask))); |
| 1277 | case IPV6_ND_SLL: |
| 1278 | return (OFOxm<F>)((Object)ipv6NdSllMasked((MacAddress)((Object)value), (MacAddress)((Object)mask))); |
| 1279 | case IPV6_ND_TARGET: |
| 1280 | return (OFOxm<F>)((Object)ipv6NdTargetMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask))); |
| 1281 | case IPV6_ND_TLL: |
| 1282 | return (OFOxm<F>)((Object)ipv6NdTllMasked((MacAddress)((Object)value), (MacAddress)((Object)mask))); |
| 1283 | case IPV6_SRC: |
| 1284 | return (OFOxm<F>)((Object)ipv6SrcMasked((IPv6Address)((Object)value), (IPv6Address)((Object)mask))); |
| 1285 | case METADATA: |
| 1286 | return (OFOxm<F>)((Object)metadataMasked((OFMetadata)((Object)value), (OFMetadata)((Object)mask))); |
| 1287 | case MPLS_LABEL: |
| 1288 | return (OFOxm<F>)((Object)mplsLabelMasked((U32)((Object)value), (U32)((Object)mask))); |
| 1289 | case MPLS_TC: |
| 1290 | return (OFOxm<F>)((Object)mplsTcMasked((U8)((Object)value), (U8)((Object)mask))); |
| 1291 | case SCTP_DST: |
| 1292 | return (OFOxm<F>)((Object)sctpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask))); |
| 1293 | case SCTP_SRC: |
| 1294 | return (OFOxm<F>)((Object)sctpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask))); |
| 1295 | case TCP_DST: |
| 1296 | return (OFOxm<F>)((Object)tcpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask))); |
| 1297 | case TCP_SRC: |
| 1298 | return (OFOxm<F>)((Object)tcpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask))); |
| 1299 | case UDP_DST: |
| 1300 | return (OFOxm<F>)((Object)udpDstMasked((TransportPort)((Object)value), (TransportPort)((Object)mask))); |
| 1301 | case UDP_SRC: |
| 1302 | return (OFOxm<F>)((Object)udpSrcMasked((TransportPort)((Object)value), (TransportPort)((Object)mask))); |
| 1303 | case VLAN_PCP: |
| 1304 | return (OFOxm<F>)((Object)vlanPcpMasked((VlanPcp)((Object)value), (VlanPcp)((Object)mask))); |
| 1305 | case VLAN_VID: |
| 1306 | return (OFOxm<F>)((Object)vlanVidMasked((OFVlanVidMatch)((Object)value), (OFVlanVidMatch)((Object)mask))); |
| 1307 | case TUNNEL_ID: |
| 1308 | return (OFOxm<F>)((Object)tunnelIdMasked((U64)((Object)value), (U64)((Object)mask))); |
| 1309 | default: |
| 1310 | throw new IllegalArgumentException("No OXM known for match field " + field); |
| 1311 | } |
| 1312 | } |
| 1313 | |
| 1314 | @SuppressWarnings("unchecked") |
| 1315 | public <F extends OFValueType<F>> OFOxm<F> fromMasked(Masked<F> masked, MatchField<F> field) { |
| 1316 | switch (field.id) { |
| 1317 | case ARP_OP: |
| 1318 | return (OFOxm<F>)((Object)arpOpMasked((ArpOpcode)((Object)(masked.getValue())), (ArpOpcode)((Object)(masked.getMask())))); |
| 1319 | case ARP_SHA: |
| 1320 | return (OFOxm<F>)((Object)arpShaMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask())))); |
| 1321 | case ARP_SPA: |
| 1322 | return (OFOxm<F>)((Object)arpSpaMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask())))); |
| 1323 | case ARP_THA: |
| 1324 | return (OFOxm<F>)((Object)arpThaMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask())))); |
| 1325 | case ARP_TPA: |
| 1326 | return (OFOxm<F>)((Object)arpTpaMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask())))); |
| 1327 | case BSN_EGR_PORT_GROUP_ID: |
| 1328 | return (OFOxm<F>)((Object)bsnEgrPortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask())))); |
| 1329 | case BSN_GLOBAL_VRF_ALLOWED: |
| 1330 | return (OFOxm<F>)((Object)bsnGlobalVrfAllowedMasked((OFBooleanValue)((Object)(masked.getValue())), (OFBooleanValue)((Object)(masked.getMask())))); |
| 1331 | case BSN_IN_PORTS_128: |
| 1332 | return (OFOxm<F>)((Object)bsnInPorts128Masked((OFBitMask128)((Object)(masked.getValue())), (OFBitMask128)((Object)(masked.getMask())))); |
| 1333 | case BSN_L3_DST_CLASS_ID: |
| 1334 | return (OFOxm<F>)((Object)bsnL3DstClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask())))); |
| 1335 | case BSN_L3_INTERFACE_CLASS_ID: |
| 1336 | return (OFOxm<F>)((Object)bsnL3InterfaceClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask())))); |
| 1337 | case BSN_L3_SRC_CLASS_ID: |
| 1338 | return (OFOxm<F>)((Object)bsnL3SrcClassIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask())))); |
| 1339 | case BSN_LAG_ID: |
| 1340 | return (OFOxm<F>)((Object)bsnLagIdMasked((LagId)((Object)(masked.getValue())), (LagId)((Object)(masked.getMask())))); |
| 1341 | case BSN_TCP_FLAGS: |
| 1342 | return (OFOxm<F>)((Object)bsnTcpFlagsMasked((U16)((Object)(masked.getValue())), (U16)((Object)(masked.getMask())))); |
| 1343 | case BSN_UDF0: |
| 1344 | return (OFOxm<F>)((Object)bsnUdf0Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask())))); |
| 1345 | case BSN_UDF1: |
| 1346 | return (OFOxm<F>)((Object)bsnUdf1Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask())))); |
| 1347 | case BSN_UDF2: |
| 1348 | return (OFOxm<F>)((Object)bsnUdf2Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask())))); |
| 1349 | case BSN_UDF3: |
| 1350 | return (OFOxm<F>)((Object)bsnUdf3Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask())))); |
| 1351 | case BSN_UDF4: |
| 1352 | return (OFOxm<F>)((Object)bsnUdf4Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask())))); |
| 1353 | case BSN_UDF5: |
| 1354 | return (OFOxm<F>)((Object)bsnUdf5Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask())))); |
| 1355 | case BSN_UDF6: |
| 1356 | return (OFOxm<F>)((Object)bsnUdf6Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask())))); |
| 1357 | case BSN_UDF7: |
| 1358 | return (OFOxm<F>)((Object)bsnUdf7Masked((UDF)((Object)(masked.getValue())), (UDF)((Object)(masked.getMask())))); |
| 1359 | case BSN_VLAN_XLATE_PORT_GROUP_ID: |
| 1360 | return (OFOxm<F>)((Object)bsnVlanXlatePortGroupIdMasked((ClassId)((Object)(masked.getValue())), (ClassId)((Object)(masked.getMask())))); |
| 1361 | case BSN_VRF: |
| 1362 | return (OFOxm<F>)((Object)bsnVrfMasked((VRF)((Object)(masked.getValue())), (VRF)((Object)(masked.getMask())))); |
| 1363 | case ETH_DST: |
| 1364 | return (OFOxm<F>)((Object)ethDstMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask())))); |
| 1365 | case ETH_SRC: |
| 1366 | return (OFOxm<F>)((Object)ethSrcMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask())))); |
| 1367 | case ETH_TYPE: |
| 1368 | return (OFOxm<F>)((Object)ethTypeMasked((EthType)((Object)(masked.getValue())), (EthType)((Object)(masked.getMask())))); |
| 1369 | case ICMPV4_CODE: |
| 1370 | return (OFOxm<F>)((Object)icmpv4CodeMasked((ICMPv4Code)((Object)(masked.getValue())), (ICMPv4Code)((Object)(masked.getMask())))); |
| 1371 | case ICMPV4_TYPE: |
| 1372 | return (OFOxm<F>)((Object)icmpv4TypeMasked((ICMPv4Type)((Object)(masked.getValue())), (ICMPv4Type)((Object)(masked.getMask())))); |
| 1373 | case ICMPV6_CODE: |
| 1374 | return (OFOxm<F>)((Object)icmpv6CodeMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask())))); |
| 1375 | case ICMPV6_TYPE: |
| 1376 | return (OFOxm<F>)((Object)icmpv6TypeMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask())))); |
| 1377 | case IN_PHY_PORT: |
| 1378 | return (OFOxm<F>)((Object)inPhyPortMasked((OFPort)((Object)(masked.getValue())), (OFPort)((Object)(masked.getMask())))); |
| 1379 | case IN_PORT: |
| 1380 | return (OFOxm<F>)((Object)inPortMasked((OFPort)((Object)(masked.getValue())), (OFPort)((Object)(masked.getMask())))); |
| 1381 | case IP_DSCP: |
| 1382 | return (OFOxm<F>)((Object)ipDscpMasked((IpDscp)((Object)(masked.getValue())), (IpDscp)((Object)(masked.getMask())))); |
| 1383 | case IP_ECN: |
| 1384 | return (OFOxm<F>)((Object)ipEcnMasked((IpEcn)((Object)(masked.getValue())), (IpEcn)((Object)(masked.getMask())))); |
| 1385 | case IP_PROTO: |
| 1386 | return (OFOxm<F>)((Object)ipProtoMasked((IpProtocol)((Object)(masked.getValue())), (IpProtocol)((Object)(masked.getMask())))); |
| 1387 | case IPV4_DST: |
| 1388 | return (OFOxm<F>)((Object)ipv4DstMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask())))); |
| 1389 | case IPV4_SRC: |
| 1390 | return (OFOxm<F>)((Object)ipv4SrcMasked((IPv4Address)((Object)(masked.getValue())), (IPv4Address)((Object)(masked.getMask())))); |
| 1391 | case IPV6_DST: |
| 1392 | return (OFOxm<F>)((Object)ipv6DstMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask())))); |
| 1393 | case IPV6_FLABEL: |
| 1394 | return (OFOxm<F>)((Object)ipv6FlabelMasked((IPv6FlowLabel)((Object)(masked.getValue())), (IPv6FlowLabel)((Object)(masked.getMask())))); |
| 1395 | case IPV6_ND_SLL: |
| 1396 | return (OFOxm<F>)((Object)ipv6NdSllMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask())))); |
| 1397 | case IPV6_ND_TARGET: |
| 1398 | return (OFOxm<F>)((Object)ipv6NdTargetMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask())))); |
| 1399 | case IPV6_ND_TLL: |
| 1400 | return (OFOxm<F>)((Object)ipv6NdTllMasked((MacAddress)((Object)(masked.getValue())), (MacAddress)((Object)(masked.getMask())))); |
| 1401 | case IPV6_SRC: |
| 1402 | return (OFOxm<F>)((Object)ipv6SrcMasked((IPv6Address)((Object)(masked.getValue())), (IPv6Address)((Object)(masked.getMask())))); |
| 1403 | case METADATA: |
| 1404 | return (OFOxm<F>)((Object)metadataMasked((OFMetadata)((Object)(masked.getValue())), (OFMetadata)((Object)(masked.getMask())))); |
| 1405 | case MPLS_LABEL: |
| 1406 | return (OFOxm<F>)((Object)mplsLabelMasked((U32)((Object)(masked.getValue())), (U32)((Object)(masked.getMask())))); |
| 1407 | case MPLS_TC: |
| 1408 | return (OFOxm<F>)((Object)mplsTcMasked((U8)((Object)(masked.getValue())), (U8)((Object)(masked.getMask())))); |
| 1409 | case SCTP_DST: |
| 1410 | return (OFOxm<F>)((Object)sctpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask())))); |
| 1411 | case SCTP_SRC: |
| 1412 | return (OFOxm<F>)((Object)sctpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask())))); |
| 1413 | case TCP_DST: |
| 1414 | return (OFOxm<F>)((Object)tcpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask())))); |
| 1415 | case TCP_SRC: |
| 1416 | return (OFOxm<F>)((Object)tcpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask())))); |
| 1417 | case UDP_DST: |
| 1418 | return (OFOxm<F>)((Object)udpDstMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask())))); |
| 1419 | case UDP_SRC: |
| 1420 | return (OFOxm<F>)((Object)udpSrcMasked((TransportPort)((Object)(masked.getValue())), (TransportPort)((Object)(masked.getMask())))); |
| 1421 | case VLAN_PCP: |
| 1422 | return (OFOxm<F>)((Object)vlanPcpMasked((VlanPcp)((Object)(masked.getValue())), (VlanPcp)((Object)(masked.getMask())))); |
| 1423 | case VLAN_VID: |
| 1424 | return (OFOxm<F>)((Object)vlanVidMasked((OFVlanVidMatch)((Object)(masked.getValue())), (OFVlanVidMatch)((Object)(masked.getMask())))); |
| 1425 | case TUNNEL_ID: |
| 1426 | return (OFOxm<F>)((Object)tunnelIdMasked((U64)((Object)(masked.getValue())), (U64)((Object)(masked.getMask())))); |
| 1427 | default: |
| 1428 | return null; |
| 1429 | } |
| 1430 | } |
| 1431 | |
| 1432 | public OFVersion getVersion() { |
| 1433 | return OFVersion.OF_12; |
| 1434 | } |
| 1435 | } |