Move creation of default network from weaver to plugin
This way it is more likely that we create it after the plugin is up and running.
This commit is contained in:
1 parent
f8d501ae50
commit
3e0eb4ac1e
2 files changed
+10
-10
No files matched your search
+1
-7
@@ -451,13 +451,7 @@ func main() {
|
||||
}
|
||||
|
||||
if enablePlugin || enablePluginV2 {
|
||||
go plugin.Start(httpAddr, dockerCli, pluginSocket, pluginMeshSocket, !noDNS, enablePluginV2, enablePluginV2Multicast)
|
||||
}
|
||||
if enablePlugin {
|
||||
Log.Println("Creating default 'weave' network")
|
||||
options := map[string]interface{}{plugin.MulticastOption: "true"}
|
||||
// TODO: the driver name should be extracted from pluginMeshSocket
|
||||
dockerCli.EnsureNetwork("weave", "weavemesh", defaultSubnet.String(), options)
|
||||
go plugin.Start(httpAddr, dockerCli, pluginSocket, pluginMeshSocket, !noDNS, enablePluginV2, enablePluginV2Multicast, defaultSubnet.String())
|
||||
}
|
||||
|
||||
if bridgeConfig.AWSVPC {
|
||||
|
||||
Reference in new issue
Block a user