code: func (n *network) applyConfigurationTo(to *network) error {
  	to.enableIPv6 = n.enableIPv6
  	if len(n.labels) > 0 {
  		to.labels = make(map[string]string, len(n.labels))
  		for k, v := range n.labels {
  			if _, ok := to.labels[k]; !ok {
  				to.labels[k] = v
  			}
  		}
  	}
  	if len(n.ipamType) != 0 {
  		to.ipamType = n.ipamType
  	}
  	if len(n.ipamOptions) > 0 {
  		to.ipamOptions = make(map[string]string, len(n.ipamOptions))
  		for k, v := range n.ipamOptions {
  			if _, ok := to.ipamOptions[k]; !ok {
  				to.ipamOptions[k] = v
  			}
  		}
  	}
  	if len(n.ipamV4Config) > 0 {
  		to.ipamV4Config = make([]*IpamConf, 0, len(n.ipamV4Config))
  		to.ipamV4Config = append(to.ipamV4Config, n.ipamV4Config...)
  	}
  	if len(n.ipamV6Config) > 0 {
  		to.ipamV6Config = make([]*IpamConf, 0, len(n.ipamV6Config))
  		to.ipamV6Config = append(to.ipamV6Config, n.ipamV6Config...)
  	}
  	if len(n.generic) > 0 {
  		to.generic = options.Generic{}
  		for k, v := range n.generic {
  			to.generic[k] = v
  		}
  	}
  	return nil
  }
docs: // Applies network specific configurations