{% extends "layout.html" %} {% from "components/markdown_content.html" import render_markdown, render_markdown_with_truncate %} {% block styles %} {% endblock %} {% block content %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}

Subnet Information

{% set network = get_ip_network(subnet.cidr) %} {% if network %} {% endif %}
CIDR Notation {{ subnet.cidr }}
Location {{ subnet.location }}
Network Address {{ network.network_address }}
Broadcast Address {{ network.broadcast_address if network.prefixlen < 31 else 'N/A' }}
Netmask {{ network.netmask }}
Host Range {% if network.prefixlen < 31 %} {{ network.network_address + 1 }} - {{ network.broadcast_address - 1 }} {% else %} {{ network.network_address }} - {{ network.broadcast_address }} {% endif %}
Total Hosts {% if network.prefixlen < 31 %} {{ network.num_addresses - 2 }} {% else %} {{ network.num_addresses }} {% endif %}
Auto Scan {{ 'Yes' if subnet.auto_scan else 'No' }}
Last Scanned {{ subnet.last_scanned|default('Never', true) }}
Created {{ subnet.created_at.strftime('%Y-%m-%d %H:%M') }}

Servers in Subnet

{% if subnet.servers %}
{% for server in subnet.servers %} {% endfor %}
Hostname IP Address Actions
{{ server.hostname }} {{ server.ip_address }}
{% else %}

No servers in this subnet

You can add a new server to this subnet from the dashboard

{% endif %}

Applications in this Subnet

{% if subnet_apps %}
{% for app in subnet_apps %} {% endfor %}
Name Server Documentation
{% if app.url %} {{ app.name }} {% else %} {{ app.name }} {% endif %} {{ app.server.hostname }} ({{ app.server.ip_address }}) {% if app.documentation %} {{ render_markdown_with_truncate(app.documentation, 120) }} {% else %} No documentation available {% endif %} View
{% else %}

No applications found

No applications are running on servers in this subnet.

{% endif %}
IP Usage ({{ used_ips }} of {{ total_ips }})
{{ (used_ips / total_ips * 100)|round(1) }}%
{% endblock %}