@classmethod
def get(cls, client, name):
    """
        Get a network by name.

        :param client: client instance
        :type client: :class:`~pylxd.client.Client`
        :param name: name of the network
        :type name: str
        :returns: network instance (if exists)
        :rtype: :class:`Network`
        :raises: :class:`~pylxd.exceptions.NotFound` if network does not exist
        """
    response = client.api.networks[name].get()
    return cls(client, **response.json()['metadata'])
