code: func CreateNetwork(tx Tx, n *api.Network) error {
  	// Ensure the name is not already in use.
  	if tx.lookup(tableNetwork, indexName, strings.ToLower(n.Spec.Annotations.Name)) != nil {
  		return ErrNameConflict
  	}
  
  	return tx.create(tableNetwork, n)
  }
docs: // CreateNetwork adds a new network to the store.
  // Returns ErrExist if the ID is already taken.