blob: 3b5a4f553827793421ba88740fa6b4104e54e445 [file] [log] [blame]
Yotam Harchol5749dc32013-08-22 15:41:30 -07001-- binary
200 01 # type
Yafit Hadarf8caac02015-08-25 10:21:44 +0300300 74 # length
Yotam Harchol5749dc32013-08-22 15:41:30 -0700480 00 # oxm_list[0].class
505 10 # oxm_list[0].type_len - METADATA
6FE DC BA 98 12 14 12 10 # oxm_list[0].value
7FF FF FF FF 12 34 56 78 # oxm_list[0].mask
880 00 # oxm_list[1].class
908 06 # oxm_list[1].type_len - ETH_SRC
1001 02 03 04 05 06 # oxm_list[1].value
1180 00 # oxm_list[2].class
1220 02 # oxm_list[2].type_len - UDP_DST
1300 35 # oxm_list[2].value
1480 00 # oxm_list[3].class
1536 10 # oxm_list[4].type_len - IPV6_DST
1612 12 12 12 12 12 12 12 # oxm_list[4].value
1712 12 12 12 12 12 12 12 # ...
Yafit Hadarf8caac02015-08-25 10:21:44 +030018
19FF FF # experimenter class
2006 10 # type_len - EXP_ODU_SIG_ID
21FF 00 00 07 # experimenter id
2255 55 # tpn
2300 50 # tslen
2401 01 01 01 01 01 01 01 01 01 00 00 # tsmap
25
26FF FF # experimenter class
2704 01 # type_len - EXP_ODU_SIG_TYPE
28FF 00 00 07 # experimenter id
2908 # value
30
31FF FF # experimenter class
320A 06 # type_len - EXP_OCH_SIG_ID
33FF 00 00 07 # experimenter id
3402 # gridType
3501 # channelSpacing
3600 04 # channelNumber
3700 01 # spectralWidth
38
39FF FF # experimenter class
4008 01 # type_len - EXP_OCH_SIG_TYPE
41FF 00 00 07 # experimenter id
4216 # value
43
Yotam Harchol5749dc32013-08-22 15:41:30 -07004400 00 00 00 # pad
45-- python
46ofp.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 Hadarf8caac02015-08-25 10:21:44 +030051 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 Harchol5749dc32013-08-22 15:41:30 -070055])
56-- java
57builder
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 Harchola289d552013-09-16 10:10:40 -070061 .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 Hadarf8caac02015-08-25 10:21:44 +030063 .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 Harchol5749dc32013-08-22 15:41:30 -070067