Merge pull request #1261 from weaveworks/arp_all_ips

send ARP update for *all* container IPs; not just the first one
This commit is contained in:
Adam Harrison committed 2015-08-05 14:38:16 +01:00
commit 93984e1955
1 file changed
+3 -1
+3 -1
View File
@@ -449,7 +449,9 @@ attach() {
netnsenter ip route add 224.0.0.0/4 dev $CONTAINER_IFNAME
fi
arp_update $CONTAINER_IFNAME $1 "netnsenter"
for ADDR in "$@" ; do
arp_update $CONTAINER_IFNAME $ADDR "netnsenter"
done
}
detach() {