| -- binary |
| 04 04 # version, type |
| 00 30 # len |
| 01 02 03 04 # xid |
| 00 5c 16 c7 # experimenter |
| 00 00 00 0f # subtype |
| 00 00 # vport type |
| 00 20 # vport len |
| 00 00 00 01 # vport port no |
| 00 02 # vport ingress tpid |
| 00 03 # vport ingress vlan id |
| 00 04 # vport egress tpid |
| 00 05 # vport egress vlan id |
| 66 6f 6f 00 00 00 00 00 00 00 00 00 00 00 00 00 # vport if name |
| -- python |
| ofp.message.bsn_virtual_port_create_request( |
| xid=0x01020304, vport=ofp.bsn_vport_q_in_q( |
| port_no=1, |
| ingress_tpid=2, |
| ingress_vlan_id=3, |
| egress_tpid=4, |
| egress_vlan_id=5, |
| if_name="foo" |
| )) |