lxd/networks.go
func networkLoadByName(s *state.State, name string) (*network, error) {
	id, dbInfo, err := s.Cluster.NetworkGet(name)
	if err != nil {
		return nil, err
	}

	n := network{state: s, id: id, name: name, description: dbInfo.Description, config: dbInfo.Config}

	return &n, nil
}
func networkLoadByName(s *state.State, name string) (*network, error) {
	id, dbInfo, err := s.Cluster.NetworkGet(name)
	if err != nil {
		return nil, err
	}

	n := network{state: s, id: id, name: name, description: dbInfo.Description, config: dbInfo.Config}

	return &n, nil
}
func networkLoadByName ( s * state . State , name string ) ( * network , error ) { id , dbInfo , err := s . Cluster . NetworkGet ( name ) if err != nil { return nil , err } n := network { state : s , id : id , name : name , description : dbInfo . Description , config : dbInfo . Config } return & n , nil }
// The network structs and functions
The network structs and functions