@is_view('virt')
def links(request, hosts):
    try:
        fqdn = request.GET['fqdn']
    except KeyError:
        return None
    current_node = None
    for host in hosts:
        if fqdn == host['fqdn']:
            current_node = host
            break
        for node in host.get('virtualization', {}).get('guests', []):
            if fqdn == node['fqdn']:
                current_node = node
                break
        if current_node:
            break
    if current_node:
        try:
            links = current_node['kitchen']['data']['links']
        except __HOLE__:
            return None
        for link in links:
            if link.get('title') == 'monitoring':
                return redirect(link['url'])
        else:
            return None
dataset/ETHPy150Open edelight/kitchen/kitchen/backends/plugins/monitoring-virt.py/links