Configure arp cache on new interface

This commit is contained in:
Bryan Boreham committed 2016-03-17 14:29:33 +00:00
1 parent b09b556796
commit ecdd7aa7ce
1 file changed
+3
+3
View File
@@ -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