blob: 8f25b573f254c58224b9ef072ed0a3337e476629 [file] [log] [blame]
Rich Lanec9fc57d2013-05-16 16:39:12 -07001-- binary
204 0f # version, type
300 70 # length
412 34 56 78 # xid
500 01 # command
603 # group_type
700 # pad
800 00 00 05 # group_id
900 30 # buckets[0].len
1000 01 # buckets[0].weight
1100 00 00 05 # buckets[0].watch_port
12ff ff ff ff # buckets[0].watch_group
1300 00 00 00 # pad
1400 00 # buckets[0].actions[0].type
1500 10 # buckets[0].actions[0].len
1600 00 00 05 # buckets[0].actions[0].port
1700 00 # buckets[0].actions[0].max_len
1800 00 00 00 00 00 # pad
1900 00 # buckets[0].actions[1].type
2000 10 # buckets[0].actions[1].len
2100 00 00 06 # buckets[0].actions[1].port
2200 00 # buckets[0].actions[1].max_len
2300 00 00 00 00 00 # pad
2400 30 # buckets[1].len
2500 01 # buckets[1].weight
2600 00 00 06 # buckets[1].watch_port
27ff ff ff ff # buckets[1].watch_group
2800 00 00 00 # pad
2900 00 # buckets[1].actions[0].type
3000 10 # buckets[1].actions[0].len
3100 00 00 05 # buckets[1].actions[0].port
3200 00 # buckets[1].actions[0].max_len
3300 00 00 00 00 00 # pad
3400 00 # buckets[1].actions[1].type
3500 10 # buckets[1].actions[1].len
3600 00 00 06 # buckets[1].actions[1].port
3700 00 # buckets[1].actions[1].max_len
3800 00 00 00 00 00 # pad
39-- python
40ofp.message.group_mod(
41 xid=0x12345678,
42 command=ofp.OFPGC_MODIFY,
43 group_type=ofp.OFPGT_FF,
44 group_id=5,
45 buckets=[
46 ofp.bucket(
47 weight=1,
48 watch_port=5,
49 watch_group=0xffffffff,
50 actions=[
51 ofp.action.output(port=5, max_len=0),
52 ofp.action.output(port=6, max_len=0)]),
53 ofp.bucket(
54 weight=1,
55 watch_port=6,
56 watch_group=0xffffffff,
57 actions=[
58 ofp.action.output(port=5, max_len=0),
59 ofp.action.output(port=6, max_len=0)])])