{% extends "master.html" %} {% from "_macros.html" import host_form, export_compliance %} {% block title %}Host{% endblock %} {%block tag %}home{% endblock %} {% block content %}

{{ host.name }}

{{ form.csrf_token }}
Site: {{ host.site.name }}
{% if host.private %}
Last Checked In: {{ host.last_checked_in or '-' }}
{% endif %} {% if not host.private %}
Last Crawled: {% if host.last_crawled %} {{ host.last_crawled }} [Log] {% else %} never {% endif %}
Last Crawl Duration: {{ host.last_crawl_duration }} seconds
{% if host.crawl_failures > 0 %}
Number of consecutive crawl failures: {{ host.crawl_failures }}
{% endif %} {% endif %}

Host Configuration

{{host_form(form, is_admin, action="Update")}}
{%- if config['MASTER_RSYNC_ACL'] -%}

Master rsync server Access Control List IPs

Add rsync ACL
{% if host.acl_ips %}
    {% for acl in host.acl_ips %}
  • {{ acl.ip }} {{ form.csrf_token }}
  • {% endfor %}
{% else %}
No Master rsync ACLs Defined
{% endif %}
{% endif %}

Site-local Netblocks

Add Netblock
{% if host.netblocks %}
    {% for netblock in host.netblocks %}
  • {{ netblock.netblock }} {{ netblock.name }}
    {{ form.csrf_token }}
  • {% endfor %}
{% else %}
No Site-local Netblocks Defined
{% endif %}

Peer ASNs

{% if is_admin %} Add Peer ASN {% else %} Only Admins can change Peer ASNs {% endif %}
{% if host.peer_asns %}
    {% for asn in host.peer_asns %}
  • {{ asn.asn }} {% if is_admin %}
    {{ form.csrf_token }}
    {% endif %}
  • {% endfor %}
{% else %}
No Peer ASNs Defined
{% endif %}

Countries Allowed

Add Country
{% if host.countries %}
    {% for country in host.countries %}
  • {{country.country.code}}
    {{ form.csrf_token }}
  • {% endfor %}
{% else %}
No Countries Allowed defined
{% endif %}

Categories Carried

Add Category
{% if host.categories %}
    {% for category in host.categories %}
  • {{ category.category.name }}
    Add URL
    {{ form.csrf_token }}
    {% if category.urls %}
      {% for url in category.urls %}
    • {{ url.url }} {{ form.csrf_token }}
    • {% endfor %}
    {% else %}
    No URLS
    {% endif %} {% if category.directories %}

    Up-to-Date Directories this host carries

      {% for dir in category.directories %} {% if dir.up2date %}
    • {{ dir.path }}
    • {% endif %} {% endfor %}
    {% endif %}
  • {% endfor %}
{% else %}
No Categories Carried defined
{% endif %}
{% endblock %}