Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
2 | 01 0d # version/type | ||||
3 | 00 23 # length | ||||
4 | 12 34 56 78 # xid | ||||
5 | ab cd ef 01 # buffer_id | ||||
6 | ff fe # in_port | ||||
7 | 00 10 # actions_len | ||||
8 | 00 00 # actions[0].type | ||||
9 | 00 08 # actions[0].len | ||||
10 | 00 01 # actions[0].port | ||||
11 | 00 00 # actions[0].max_len | ||||
12 | 00 00 # actions[1].type | ||||
13 | 00 08 # actions[1].len | ||||
14 | 00 02 # actions[1].port | ||||
15 | 00 00 # actions[1].max_len | ||||
16 | 61 62 63 # data | ||||
17 | -- python | ||||
18 | ofp.message.packet_out( | ||||
19 | xid=0x12345678, | ||||
20 | buffer_id=0xabcdef01, | ||||
21 | in_port=ofp.OFPP_LOCAL, | ||||
22 | actions=[ | ||||
23 | ofp.action.output(port=1), | ||||
24 | ofp.action.output(port=2)], | ||||
25 | data='abc') |