From ecdd7aa7ce386e8db16d410c44a6911f8cf0a0a9 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 15 Mar 2016 15:16:55 +0000 Subject: [PATCH] Configure arp cache on new interface --- plugin/net/cni.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/net/cni.go b/plugin/net/cni.go index ce08ab20..95977e10 100644 --- a/plugin/net/cni.go +++ b/plugin/net/cni.go @@ -135,6 +135,9 @@ func setupGuestIP4(origName, name string, ipnet net.IPNet, gw net.IP, routes []t if err = netlink.LinkSetUp(guest); err != nil { return err } + if err = common.ConfigureARPCache(name); err != nil { + return err + } if routes == nil { // If config says nothing about routes, add a default one if !ipnet.Contains(gw) { // The bridge IP is not on the same subnet; add a specific route to it