blob: b4c45e55f3f37366653e0a0372e405cde171a564 [file] [log] [blame]
Murat Parlakisikf95672c2016-12-05 00:53:17 -08001-- binary
206 13 # version, type
300 68 # length
412 34 56 78 # xid
500 01 # multipart message type (OFPMP_FLOW_DESC) -- old name is OFPMP_FLOW for spec 1.3.1, 1.4.0, 1.4.1
600 01 # flags
700 00 00 00 # pad
8
900 58 # length
1000 00 # pad
1101 # table_id
1200 # pad
1300 01 # priority
1400 10 # idle_timeout
1500 60 # hard_timeout
1600 01 # flags (OFPFF_SEND_FLOW_REM) Send flow removed message when flow expires or is deleted
1700 01 # importance
18fe dc ba 98 76 54 32 10 # cookie
19
2000 01 # match.type
2100 10 # match.length
2280 00 01 08 # match.oxm_list[0].type_len - IN_PORT
2300 00 00 04 # match.oxm_list[0].value
2400 00 00 05 # match.oxm_list[0].mask
2500 00 # match.pad
26
27
2800 1c # stats.length
2980 02 00 08 # stats.oxs_list[0].type_len - DURATION
3000 00 00 00 00 00 00 04 # stats.oxs_list[0].value
3180 02 02 08 # stats.oxs_list[1].type_len - IDLE_TIME (8002 -> Openflow_basic oxs class and 02 -> 0000 0010 -> oxs_field width 7, oxs_reserved width 1 and 08 is length)
3200 00 00 00 00 00 00 06 # stats.oxs_list[1].value
3300 00 00 00 # stats.pad
34
3500 01 # instructions[0].type
3600 08 # instructions[0].length
3704 # instructions[0].table_id
3800 00 00 # pad
39
4000 01 # instructions[1].type
4100 08 # instructions[1].length
4207 # instructions[1].table_id
4300 00 00 # pad
44
45--java
46builder
47 .setXid(0x12345678)
48 .setFlags(ImmutableSet.<OFStatsReplyFlags>of(OFStatsReplyFlags.REPLY_MORE))
49 .setEntries(ImmutableList.<OFFlowStatsEntry>of(
50 factory.buildFlowStatsEntry().setTableId(TableId.of(1))
51 .setPriority(1)
52 .setIdleTimeout(16)
53 .setHardTimeout(96)
54 .setFlags(ImmutableSet.<OFFlowModFlags>of(OFFlowModFlags.SEND_FLOW_REM))
55 .setImportance(1)
56 .setCookie(U64.parseHex("FEDCBA9876543210"))
57 .setMatch(factory.buildMatch()
58 .setMasked(MatchField.IN_PORT, OFPort.of(4), OFPort.of(5))
59 .build())
60 .setStats(factory.buildStatV6()
61 .setOxsFields(OFOxsList.of(factory.oxss().buildDuration().setValue(U64.of(4)).build(),
62 factory.oxss().buildIdleTime().setValue(U64.of(6)).build()))
63 .build())
64 .setInstructions(ImmutableList.<OFInstruction>of(
65 factory.instructions().gotoTable(TableId.of(4)),
66 factory.instructions().gotoTable(TableId.of(7))))
67 .build() ))
68 .build()