Rich Lane | b1f347d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 01 15 # version / type |
| 3 | 00 50 # length |
| 4 | 12 34 56 78 # xid |
| 5 | ff fe # port |
| 6 | 00 00 00 00 00 00 # pad |
| 7 | 00 00 00 01 # queues[0].queue_id |
| 8 | 00 18 # queues[0].len |
| 9 | 00 00 # queues[0].pad |
| 10 | 00 01 # queues[0].properties[0].type |
| 11 | 00 10 # queues[0].properties[0].length |
| 12 | 00 00 00 00 # queues[0].properties[0].pad |
| 13 | 00 05 # queues[0].properties[0].rate |
| 14 | 00 00 00 00 00 00 # queues[0].properties[0].pad2 |
| 15 | 00 00 00 02 # queues[1].queue_id |
| 16 | 00 28 # queues[1].len |
| 17 | 00 00 # queues[1].pad |
| 18 | 00 01 # queues[1].properties[0].type |
| 19 | 00 10 # queues[1].properties[0].length |
| 20 | 00 00 00 00 # queues[1].properties[0].pad |
| 21 | 00 06 # queues[1].properties[0].rate |
| 22 | 00 00 00 00 00 00 # queues[1].properties[0].pad2 |
| 23 | 00 01 # queues[1].properties[1].type |
| 24 | 00 10 # queues[1].properties[1].length |
| 25 | 00 00 00 00 # queues[1].properties[1].pad |
| 26 | 00 07 # queues[1].properties[1].rate |
| 27 | 00 00 00 00 00 00 # queues[1].properties[1].pad2 |
| 28 | -- python |
| 29 | ofp.message.queue_get_config_reply( |
| 30 | xid=0x12345678, |
| 31 | port=ofp.OFPP_LOCAL, |
| 32 | queues=[ |
| 33 | ofp.packet_queue(queue_id=1, properties=[ |
| 34 | ofp.queue_prop_min_rate(rate=5)]), |
| 35 | ofp.packet_queue(queue_id=2, properties=[ |
| 36 | ofp.queue_prop_min_rate(rate=6), |
| 37 | ofp.queue_prop_min_rate(rate=7)])]) |