Merge into master from pull request #66:
Support for specifying interface name while creating virtual port. (https://github.com/floodlight/loxigen/pull/66)
diff --git a/c_gen/templates/loci_show.h b/c_gen/templates/loci_show.h
index 6985367..948ee92 100644
--- a/c_gen/templates/loci_show.h
+++ b/c_gen/templates/loci_show.h
@@ -154,6 +154,7 @@
#define LOCI_SHOW_string(writer, cookie, val) writer(cookie, "%s", val)
#define LOCI_SHOW_port_name(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)
+#define LOCI_SHOW_port_name_if_name(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)
#define LOCI_SHOW_tab_name(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)
#define LOCI_SHOW_desc_str(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)
#define LOCI_SHOW_ser_num(writer, cookie, val) LOCI_SHOW_string(writer, cookie, val)
diff --git a/openflow_input/bsn_vport b/openflow_input/bsn_vport
index 52f7c1d..4eeda8c 100644
--- a/openflow_input/bsn_vport
+++ b/openflow_input/bsn_vport
@@ -55,12 +55,13 @@
struct of_bsn_vport_q_in_q : of_bsn_vport {
uint16_t type == 0;
- uint16_t length; /* 16 */
+ uint16_t length; /* 32 */
uint32_t port_no; /* OF port number of parent; usually phys port */
uint16_t ingress_tpid;
uint16_t ingress_vlan_id;
uint16_t egress_tpid;
uint16_t egress_vlan_id;
+ of_port_name_t if_name; /* Name to use in create operation */
};
// Request from controller to switch to create vport