Get rid of deprecated --no-multicast-route

This commit is contained in:
Martynas Pumputis authored and Bryan Boreham committed 2017-04-12 13:05:40 +00:00
1 parent 1f42a9d2f9
commit d7306c66f7
3 files changed
+3 -9

No files matched your search

+1 -4
View File
@@ -20,7 +20,7 @@ import (
var Log = common.Log var Log = common.Log
func Start(weaveAPIAddr string, dockerAPIAddr string, address string, meshAddress string, noMulticastRoute bool) { func Start(weaveAPIAddr string, dockerAPIAddr string, address string, meshAddress string) {
weave := weaveapi.NewClient(weaveAPIAddr, Log) weave := weaveapi.NewClient(weaveAPIAddr, Log)
var dockerClient *docker.Client var dockerClient *docker.Client
@@ -33,9 +33,6 @@ func Start(weaveAPIAddr string, dockerAPIAddr string, address string, meshAddres
} }
} }
if noMulticastRoute {
Log.Warning("--no-multicast-route option has been removed; multicast is off by default")
}
if dockerClient == nil { if dockerClient == nil {
Log.Info("Running without Docker API connection") Log.Info("Running without Docker API connection")
} else { } else {
+1 -4
View File
@@ -153,7 +153,6 @@ func main() {
advertiseAddress string advertiseAddress string
pluginSocket string pluginSocket string
pluginMeshSocket string pluginMeshSocket string
noMulticastRoute bool
enablePlugin bool enablePlugin bool
defaultDockerHost = "unix:///var/run/docker.sock" defaultDockerHost = "unix:///var/run/docker.sock"
@@ -203,7 +202,6 @@ func main() {
mflag.BoolVar(&enablePlugin, []string{"-plugin"}, false, "enable Docker plugin") mflag.BoolVar(&enablePlugin, []string{"-plugin"}, false, "enable Docker plugin")
mflag.StringVar(&pluginSocket, []string{"-plugin-socket"}, "/run/docker/plugins/weave.sock", "plugin socket on which to listen") mflag.StringVar(&pluginSocket, []string{"-plugin-socket"}, "/run/docker/plugins/weave.sock", "plugin socket on which to listen")
mflag.StringVar(&pluginMeshSocket, []string{"-plugin-mesh-socket"}, "/run/docker/plugins/weavemesh.sock", "plugin socket on which to listen in mesh mode") mflag.StringVar(&pluginMeshSocket, []string{"-plugin-mesh-socket"}, "/run/docker/plugins/weavemesh.sock", "plugin socket on which to listen in mesh mode")
mflag.BoolVar(&noMulticastRoute, []string{"-no-multicast-route"}, false, "deprecated (this is now the default)")
// crude way of detecting that we probably have been started in a // crude way of detecting that we probably have been started in a
// container, with `weave launch` --> suppress misleading paths in // container, with `weave launch` --> suppress misleading paths in
@@ -407,8 +405,7 @@ func main() {
} }
if enablePlugin { if enablePlugin {
// TODO(mp) do not pass pluginMeshSocket if plugin-v2 is in use go plugin.Start(httpAddr, dockerAPI, pluginSocket, pluginMeshSocket)
go plugin.Start(httpAddr, dockerAPI, pluginSocket, pluginMeshSocket, noMulticastRoute)
} }
signals.SignalHandlerLoop(common.Log, router) signals.SignalHandlerLoop(common.Log, router)
+1 -1
View File
@@ -49,7 +49,7 @@ weave launch <same arguments as 'weave launch-router'>
[--no-restart] [--resume] [--no-discovery] [--no-dns] [--no-restart] [--resume] [--no-discovery] [--no-dns]
[--ipalloc-init <mode>] [--ipalloc-init <mode>]
[--ipalloc-range <cidr> [--ipalloc-default-subnet <cidr>]] [--ipalloc-range <cidr> [--ipalloc-default-subnet <cidr>]]
[--plugin [--no-multicast-route]] [--plugin]
[--log-level=debug|info|warning|error] [--log-level=debug|info|warning|error]
<peer> ... <peer> ...
launch-proxy [-H <endpoint>] [--without-dns] [--no-multicast-route] launch-proxy [-H <endpoint>] [--without-dns] [--no-multicast-route]