{% extends "layout.html" %} {% 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 %}
{% endblock %}