packagenetworkimport("net""github.com/containernetworking/plugins/pkg/ip")// CalcGatewayIP takes a network and returns the first IP in it.funcCalcGatewayIP(ipn*net.IPNet)net.IP{// taken from cni bridge plugin as it is not exportednid:=ipn.IP.Mask(ipn.Mask)returnip.NextIP(nid)}