ovs-ofctl: Use vconn_open() instead of vconn_open_block() in open_vconn__().
authorBen Pfaff <blp@nicira.com>
Fri, 4 Jan 2013 20:37:17 +0000 (12:37 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 24 Jan 2013 22:57:22 +0000 (14:57 -0800)
All of the paths in open_vconn__(), except the one path that calls
vconn_open() directly, just start the connection and do not block until
it completes.  This changes the remaining path to work the same way.

This will be important in an upcoming commit when in some cases we need to
take an action between opening and connecting.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
utilities/ovs-ofctl.c

index 2ffe3d5..7794043 100644 (file)
@@ -387,8 +387,7 @@ open_vconn__(const char *name, const char *default_suffix,
     free(datapath_type);
 
     if (strchr(name, ':')) {
-        run(vconn_open_block(name, get_allowed_ofp_versions(), DSCP_DEFAULT,
-                             vconnp),
+        run(vconn_open(name, get_allowed_ofp_versions(), DSCP_DEFAULT, vconnp),
             "connecting to %s", name);
     } else if (!open_vconn_socket(name, vconnp)) {
         /* Fall Through. */