예제 #1
0
파일: main.go 프로젝트: narry/weave
func main() {
	var (
		args = os.Args[1:]
	)

	_, err := weavenet.EnsureInterfaceAndMcastRoute("ethwe")
	checkErr(err)

	if len(args) == 0 {
		checkErr(ErrNoCommandSpecified)
	}

	binary, err := exec.LookPath(args[0])
	checkErr(err)

	checkErr(syscall.Exec(binary, args, os.Environ()))
}
func checkNetwork() error {
	_, err := weavenet.EnsureInterfaceAndMcastRoute("ethwe")
	return err
}
예제 #3
0
func checkNetwork() error {
	_, err := weavenet.EnsureInterfaceAndMcastRoute(weavenet.VethName)
	return err
}