blob: 6c6d8725a6199f5a86413585eeef090602d48b6b [file] [log] [blame]
Murat Parlakisikf95672c2016-12-05 00:53:17 -08001-- binary
206 0b # version, type
300 48 # length
412 34 56 78 # xid
514 # table_id
602 # reason
742 68 # priority
800 05 # idle_timeout
900 1e # hard_timeout
10fe dc ba 98 76 54 32 10 # cookie
1100 01 # match.type
1200 10 # match.length
1380 00 01 08 # match.oxm_list[0].type_len - IN_PORT
1400 00 00 04 # match.oxm_list[0].value
1500 00 00 05 # match.oxm_list[0].mask
1600 00 # match.pad
1700 1c # stats.length
1880 02 00 08 # stats.oxs_list[0].type_len - DURATION
1900 00 00 00 00 00 00 04 # stats.oxs_list[0].value
2080 02 02 08 # stats.oxs_list[1].type_len - IDLE_TIME (02 -> 0000 0010 -> oxs_field width 7, oxs_reserved width 1)
2100 00 00 00 00 00 00 06 # stats.oxs_list[1].value
2200 00 00 00 # stats.pad
23--java
24builder
25 .setXid(0x12345678)
26 .setTableId(TableId.of(20))
27 .setReason(OFFlowRemovedReason.DELETE)
28 .setPriority(17000)
29 .setIdleTimeout(5)
30 .setHardTimeout(30)
31 .setCookie(U64.parseHex("FEDCBA9876543210"))
32 .setMatch(
33 factory.buildMatch()
34 .setMasked(MatchField.IN_PORT, OFPort.of(4), OFPort.of(5))
35 .build())
36 .setStats(
37 factory.buildStatV6()
38 .setOxsFields(OFOxsList.of(factory.oxss().buildDuration().setValue(U64.of(4)).build(),
39 factory.oxss().buildIdleTime().setValue(U64.of(6)).build()))
40 .build())
41 .build()
42
43
44