Пример #1
0
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
}