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

Network Infrastructure

{% if hierarchy.locations %} {% for location_name, location_data in hierarchy.locations.items() %}

{{ location_name }}

{% if location_data.subnets %}

Subnets

{% for subnet in location_data.subnets %}

{{ subnet.cidr }} {% if subnet.description is defined and 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 }} {% if app.ports %} Ports: {% for port in app.ports %} {{ port.port }}/{{ port.protocol }} {% endfor %} {% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% else %}
No servers in this subnet
{% endif %}
{% endfor %}
{% endif %} {% if location_data.standalone_servers %}

Standalone Servers

{% for server in location_data.standalone_servers %}
{{ server.hostname }} {{ server.ip_address }} Public IP
{% if server.apps %}
{% for app in server.apps %}
{{ app.name }} {% if app.ports %} Ports: {% for port in app.ports %} {{ port.port }}/{{ port.protocol }} {% endfor %} {% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %} {% else %}

No infrastructure defined yet

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

{% endif %}
{% endblock %}