'Get all networks for client.'

def get_all(self, context):

    client = get_client(context)
    networks = client.list_networks().get('networks')
    network_objs = []
    for network in networks:
        network_objs.append(objects.Network(context=context, name=network['name'], label=network['name'], uuid=network['id']))
    return objects.NetworkList(context=context, objects=network_objs)
