When container is started in host (or container) networkMode, we mount a noop weavewait, so it can continue
review feedback
This commit is contained in:
1 parent
77c7963bde
commit
ec5a1a3977
12 files changed
+106
-42
No files matched your search
@@ -0,0 +1,12 @@
|
||||
// +build !noop
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
weavenet "github.com/weaveworks/weave/net"
|
||||
)
|
||||
|
||||
func checkNetwork() error {
|
||||
_, err := weavenet.EnsureInterfaceAndMcastRoute("ethwe")
|
||||
return err
|
||||
}
|
||||
Reference in new issue
Block a user