From 8eb52538de7fbac24342b20f62a8f205f90b358e Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Wed, 30 Mar 2016 14:01:57 +0100 Subject: [PATCH] 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 --- prog/weaver/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prog/weaver/main.go b/prog/weaver/main.go index 77ead51e..a406b543 100644 --- a/prog/weaver/main.go +++ b/prog/weaver/main.go @@ -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()