wait for datapath device

so that when the router container restarts after a reboot it waits for
the proxy to create the datapath device.

Fixes #2113
This commit is contained in:
Matthias Radestock committed 2016-03-30 14:01:57 +01:00
1 parent 90629bc6d3
commit 8eb52538de
1 file changed
+2
+2
View File
@@ -348,6 +348,8 @@ func createOverlay(datapathName string, ifaceName string, host string, port int,
case datapathName != "" && ifaceName != "":
Log.Fatal("At most one of --datapath and --iface must be specified.")
case datapathName != "":
_, err := weavenet.EnsureInterface(datapathName)
checkFatal(err)
fastdp, err := weave.NewFastDatapath(datapathName, port)
checkFatal(err)
bridge = fastdp.Bridge()