code: func NetworkOptionIpam(ipamDriver string, addrSpace string, ipV4 []*IpamConf, ipV6 []*IpamConf, opts map[string]string) NetworkOption {
  	return func(n *network) {
  		if ipamDriver != "" {
  			n.ipamType = ipamDriver
  			if ipamDriver == ipamapi.DefaultIPAM {
  				n.ipamType = defaultIpamForNetworkType(n.Type())
  			}
  		}
  		n.ipamOptions = opts
  		n.addrSpace = addrSpace
  		n.ipamV4Config = ipV4
  		n.ipamV6Config = ipV6
  	}
  }
docs: // NetworkOptionIpam function returns an option setter for the ipam configuration for this network