Rich Lane | c10be43 | 2014-10-10 17:13:46 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 05 13 # version/type |
| 3 | 00 58 # length |
| 4 | 00 00 00 05 # xid |
| 5 | 00 0d # stats_type |
| 6 | 00 00 # flags |
| 7 | 00 00 00 00 # pad |
| 8 | 00 00 00 01 # entries[0].port_no |
| 9 | 00 48 # entries[0].length |
| 10 | 00 00 # pad |
| 11 | 01 02 03 04 05 06 # entries[0].hw_addr |
| 12 | 00 00 # pad |
| 13 | 69 6e 74 65 72 66 61 63 65 31 32 33 34 35 36 37 # entries[0].name |
| 14 | 00 00 00 50 # entries[0].config |
| 15 | 00 00 00 60 # entries[0].state |
| 16 | 00 00 # entries[0].properties[0].type (ethernet) |
| 17 | 00 20 # entries[0].properties[0].length |
| 18 | 00 00 00 00 # pad |
| 19 | 00 00 00 70 # entries[0].properties[0].curr |
| 20 | 00 00 00 00 # entries[0].properties[0].advertised |
| 21 | 00 00 00 00 # entries[0].properties[0].supported |
| 22 | 00 00 00 00 # entries[0].properties[0].peer |
| 23 | 00 00 00 00 # entries[0].properties[0].curr_speed |
| 24 | 00 00 00 80 # entries[0].properties[0].max_speed |
| 25 | -- python |
| 26 | ofp.message.port_desc_stats_reply( |
| 27 | xid=5, flags=0, entries=[ |
| 28 | ofp.port_desc( |
| 29 | port_no=1, |
| 30 | hw_addr=[1,2,3,4,5,6], |
| 31 | name="interface1234567", |
| 32 | config=0x50, |
| 33 | state=0x60, |
| 34 | properties=[ |
| 35 | ofp.port_desc_prop.ethernet( |
| 36 | curr=0x70, |
| 37 | max_speed=0x80)])]) |
| 38 | |