code: func UpdateNetwork(tx Tx, n *api.Network) error {
  	// Ensure the name is either not in use or already used by this same Network.
  	if existing := tx.lookup(tableNetwork, indexName, strings.ToLower(n.Spec.Annotations.Name)); existing != nil {
  		if existing.GetID() != n.ID {
  			return ErrNameConflict
  		}
  	}
  
  	return tx.update(tableNetwork, n)
  }
docs: // UpdateNetwork updates an existing network in the store.
  // Returns ErrNotExist if the network doesn't exist.