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:
1 parent
90629bc6d3
commit
8eb52538de
1 file changed
+2
@@ -348,6 +348,8 @@ func createOverlay(datapathName string, ifaceName string, host string, port int,
|
|||||||
case datapathName != "" && ifaceName != "":
|
case datapathName != "" && ifaceName != "":
|
||||||
Log.Fatal("At most one of --datapath and --iface must be specified.")
|
Log.Fatal("At most one of --datapath and --iface must be specified.")
|
||||||
case datapathName != "":
|
case datapathName != "":
|
||||||
|
_, err := weavenet.EnsureInterface(datapathName)
|
||||||
|
checkFatal(err)
|
||||||
fastdp, err := weave.NewFastDatapath(datapathName, port)
|
fastdp, err := weave.NewFastDatapath(datapathName, port)
|
||||||
checkFatal(err)
|
checkFatal(err)
|
||||||
bridge = fastdp.Bridge()
|
bridge = fastdp.Bridge()
|
||||||
|
|||||||
Reference in new issue
Block a user