Add functions to determine how port should be opened based on type.
[openvswitch] / ofproto / ofproto-dpif.c
index 283aea98d58989103c60d359f2867384a20ead66..fe0aae3b8a7e0a9ff2b100f6f9f4e40cee05a566 100644 (file)
@@ -780,6 +780,12 @@ del(const char *type, const char *name)
     return error;
 }
 \f
+static const char *
+port_open_type(const char *datapath_type, const char *port_type)
+{
+    return dpif_port_open_type(datapath_type, port_type);
+}
+
 /* Type functions. */
 
 static int
@@ -7865,6 +7871,7 @@ const struct ofproto_class ofproto_dpif_class = {
     enumerate_types,
     enumerate_names,
     del,
+    port_open_type,
     type_run,
     type_run_fast,
     type_wait,