{% extends "layout.html" %} {% block content %}

Network Infrastructure

{% if hierarchy.subnets %} {% for subnet in hierarchy.subnets %}

{{ subnet.cidr }} {% if subnet.location %} ({{ subnet.location }}) {% endif %} {% if subnet.description %} {{ subnet.description }} {% endif %}

{% if subnet.servers %}
{% for server in subnet.servers %}
{{ server.hostname }} {{ server.ip_address }}
{% if server.apps %}
{% for app in server.apps %}
{{ app.name }}
{% for port in app.ports %} {{ port.port_number }}/{{ port.protocol }} {% endfor %}
{% endfor %}
{% else %}
No applications
{% endif %}
{% endfor %}
{% else %}
No servers in this subnet
{% endif %}
{% endfor %} {% endif %} {% if hierarchy.standalone_servers %}

Standalone Servers

{% for server in hierarchy.standalone_servers %}
{{ server.hostname }} {{ server.ip_address }}
{% if server.apps %}
{% for app in server.apps %}
{{ app.name }}
{% for port in app.ports %} {{ port.port_number }}/{{ port.protocol }} {% endfor %}
{% endfor %}
{% else %}
No applications
{% endif %}
{% endfor %}
{% endif %} {% if not hierarchy.subnets and not hierarchy.standalone_servers %}

No infrastructure defined yet

Start by creating a subnet or a server to organize your infrastructure.

{% endif %}
{% endblock %}