code: func (daemon *Daemon) GetNetworkByName(name string) (libnetwork.Network, error) {
  	c := daemon.netController
  	if c == nil {
  		return nil, libnetwork.ErrNoSuchNetwork(name)
  	}
  	if name == "" {
  		name = c.Config().Daemon.DefaultNetwork
  	}
  	return c.NetworkByName(name)
  }
docs: // GetNetworkByName function returns a network for a given network name.
  // If no network name is given, the default network is returned.