Wilson Ng | a5706e6 | 2014-04-09 04:11:20 -0700 | [diff] [blame^] | 1 | -- binary |
| 2 | 04 04 # version, type |
| 3 | 00 30 # len |
| 4 | 01 02 03 04 # xid |
| 5 | 00 5c 16 c7 # experimenter |
| 6 | 00 00 00 0f # subtype |
| 7 | 00 00 # vport type |
| 8 | 00 20 # vport len |
| 9 | 00 00 00 01 # vport port no |
| 10 | 00 02 # vport ingress tpid |
| 11 | 00 03 # vport ingress vlan id |
| 12 | 00 04 # vport egress tpid |
| 13 | 00 05 # vport egress vlan id |
| 14 | 66 6f 6f 00 00 00 00 00 00 00 00 00 00 00 00 00 # vport if name |
| 15 | -- python |
| 16 | ofp.message.bsn_virtual_port_create_request( |
| 17 | xid=0x01020304, vport=ofp.bsn_vport_q_in_q( |
| 18 | port_no=1, |
| 19 | ingress_tpid=2, |
| 20 | ingress_vlan_id=3, |
| 21 | egress_tpid=4, |
| 22 | egress_vlan_id=5, |
| 23 | if_name="foo" |
| 24 | )) |