Merge branch 'issues/1940-remove-proxy-attach-dep'
This commit is contained in:
commit
7c819e7f5c
1 file changed
+3
@@ -3,6 +3,7 @@ package net
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/j-keck/arping"
|
"github.com/j-keck/arping"
|
||||||
"github.com/vishvananda/netlink"
|
"github.com/vishvananda/netlink"
|
||||||
@@ -148,6 +149,8 @@ func AttachContainer(ns netns.NsHandle, id, ifName, bridgeName string, mtu int,
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
for _, ipnet := range newAddresses {
|
for _, ipnet := range newAddresses {
|
||||||
|
// If we don't wait for a bit here, we see the arp fail to reach the bridge.
|
||||||
|
time.Sleep(1 * time.Millisecond)
|
||||||
arping.GratuitousArpOverIfaceByName(ipnet.IP, ifName)
|
arping.GratuitousArpOverIfaceByName(ipnet.IP, ifName)
|
||||||
}
|
}
|
||||||
if withMulticastRoute {
|
if withMulticastRoute {
|
||||||
|
|||||||
Reference in new issue
Block a user