Add test file for q_in_q vport.
diff --git a/openflow_input/bsn_vport b/openflow_input/bsn_vport
index 4eeda8c..83440e1 100644
--- a/openflow_input/bsn_vport
+++ b/openflow_input/bsn_vport
@@ -72,8 +72,7 @@
uint32_t xid;
uint32_t experimenter == 0x5c16c7;
uint32_t subtype == 15;
- // FIXME This should be an instance of the inheritance superclass
- of_bsn_vport_q_in_q_t vport; // Description of vport to create
+ of_bsn_vport_t vport; // Description of vport to create
// Additional data follows depending on header type
};
diff --git a/py_gen/oftype.py b/py_gen/oftype.py
index ddde14a..7bd242e 100644
--- a/py_gen/oftype.py
+++ b/py_gen/oftype.py
@@ -142,7 +142,7 @@
'of_match_t': 'common.match',
'of_port_desc_t': 'common.port_desc',
'of_meter_features_t': 'common.meter_features',
- 'of_bsn_vport_q_in_q_t': 'common.bsn_vport_q_in_q',
+ 'of_bsn_vport_t': 'common.bsn_vport',
}
for (cls, pyclass) in embedded_structs.items():
diff --git a/test_data/of13/bsn_vport_create_request__q_in_q.data b/test_data/of13/bsn_vport_create_request__q_in_q.data
new file mode 100644
index 0000000..2c35542
--- /dev/null
+++ b/test_data/of13/bsn_vport_create_request__q_in_q.data
@@ -0,0 +1,24 @@
+-- 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"
+))