Yotam Harchol | 5749dc3 | 2013-08-22 15:41:30 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 00 01 # type |
Yafit Hadar | f8caac0 | 2015-08-25 10:21:44 +0300 | [diff] [blame] | 3 | 00 74 # length |
Yotam Harchol | 5749dc3 | 2013-08-22 15:41:30 -0700 | [diff] [blame] | 4 | 80 00 # oxm_list[0].class |
| 5 | 05 10 # oxm_list[0].type_len - METADATA |
| 6 | FE DC BA 98 12 14 12 10 # oxm_list[0].value |
| 7 | FF FF FF FF 12 34 56 78 # oxm_list[0].mask |
| 8 | 80 00 # oxm_list[1].class |
| 9 | 08 06 # oxm_list[1].type_len - ETH_SRC |
| 10 | 01 02 03 04 05 06 # oxm_list[1].value |
| 11 | 80 00 # oxm_list[2].class |
| 12 | 20 02 # oxm_list[2].type_len - UDP_DST |
| 13 | 00 35 # oxm_list[2].value |
| 14 | 80 00 # oxm_list[3].class |
| 15 | 36 10 # oxm_list[4].type_len - IPV6_DST |
| 16 | 12 12 12 12 12 12 12 12 # oxm_list[4].value |
| 17 | 12 12 12 12 12 12 12 12 # ... |
Yafit Hadar | f8caac0 | 2015-08-25 10:21:44 +0300 | [diff] [blame] | 18 | |
| 19 | FF FF # experimenter class |
| 20 | 06 10 # type_len - EXP_ODU_SIG_ID |
| 21 | FF 00 00 07 # experimenter id |
| 22 | 55 55 # tpn |
| 23 | 00 50 # tslen |
| 24 | 01 01 01 01 01 01 01 01 01 01 00 00 # tsmap |
| 25 | |
| 26 | FF FF # experimenter class |
| 27 | 04 01 # type_len - EXP_ODU_SIG_TYPE |
| 28 | FF 00 00 07 # experimenter id |
| 29 | 08 # value |
| 30 | |
| 31 | FF FF # experimenter class |
| 32 | 0A 06 # type_len - EXP_OCH_SIG_ID |
| 33 | FF 00 00 07 # experimenter id |
| 34 | 02 # gridType |
| 35 | 01 # channelSpacing |
| 36 | 00 04 # channelNumber |
| 37 | 00 01 # spectralWidth |
| 38 | |
| 39 | FF FF # experimenter class |
| 40 | 08 01 # type_len - EXP_OCH_SIG_TYPE |
| 41 | FF 00 00 07 # experimenter id |
| 42 | 16 # value |
| 43 | |
Yotam Harchol | 5749dc3 | 2013-08-22 15:41:30 -0700 | [diff] [blame] | 44 | 00 00 00 00 # pad |
| 45 | -- python |
| 46 | ofp.match([ |
| 47 | ofp.oxm.metadata_masked(0xFEDCBA9812141210, 0xFFFFFFFF12345678), |
| 48 | ofp.oxm.eth_src([1,2,3,4,5,6]), |
| 49 | ofp.oxm.udp_dst(53), |
| 50 | ofp.oxm.ipv6_dst("\x12" * 16), |
Yafit Hadar | f8caac0 | 2015-08-25 10:21:44 +0300 | [diff] [blame] | 51 | ofp.oxm.exp_odu_sig_id(21845,4,10), |
| 52 | ofp.oxm.exp_odu_sigtype(8), |
| 53 | ofp.oxm.exp_och_sig_id(2,1,4,1), |
| 54 | ofp.oxm.exp_och_sigtype(22) |
Yotam Harchol | 5749dc3 | 2013-08-22 15:41:30 -0700 | [diff] [blame] | 55 | ]) |
| 56 | -- java |
| 57 | builder |
| 58 | .setMasked(MatchField.METADATA, OFMetadata.ofRaw(0xFEDCBA9812141210l), OFMetadata.ofRaw(0xFFFFFFFF12345678l)) |
| 59 | .setExact(MatchField.ETH_SRC, MacAddress.of(new byte[] {1,2,3,4,5,6})) |
| 60 | .setExact(MatchField.UDP_DST, TransportPort.of(53)) |
Yotam Harchol | a289d55 | 2013-09-16 10:10:40 -0700 | [diff] [blame] | 61 | .setExact(MatchField.IPV6_DST, IPv6Address.of(new byte[] { 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, |
| 62 | 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12, 0x12 })) |
Yafit Hadar | f8caac0 | 2015-08-25 10:21:44 +0300 | [diff] [blame] | 63 | .setExact(MatchField.EXP_ODU_SIG_ID, new OduSignalID((short)21845, (short)80,new byte[] {1,1,1,1,1,1,1,1,1,1})) |
| 64 | .setExact(MatchField.EXP_ODU_SIGTYPE, U8.of((short) 8 )) |
| 65 | .setExact(MatchField.EXP_OCH_SIG_ID, new CircuitSignalID((byte)2,(byte)1,(short)4,(short)1)) |
| 66 | .setExact(MatchField.EXP_OCH_SIGTYPE, U8.of((short) 22)) |
Yotam Harchol | 5749dc3 | 2013-08-22 15:41:30 -0700 | [diff] [blame] | 67 | |