code: func (store *AttachmentStore) ResetAttachments(attachments map[string]string) error {
  	store.Lock()
  	defer store.Unlock()
  	store.clearAttachments()
  	for nid, nodeIP := range attachments {
  		ip, _, err := net.ParseCIDR(nodeIP)
  		if err != nil {
  			store.networkToNodeLBIP = make(map[string]net.IP)
  			return errors.Wrapf(err, "Failed to parse load balancer address %s", nodeIP)
  		}
  		store.networkToNodeLBIP[nid] = ip
  	}
  	return nil
  }
docs: // ResetAttachments clears any existing load balancer IP to network mapping and
  // sets the mapping to the given attachments.