{% extends "base.html" %} {% block title %}Interfaces - Vacuum Wall{% endblock %} {% block content %}
{% for iface in (interfaces or []) %} {% set entry = ((network_config or {}).get('interfaces') or {}).get(iface.get('name')) or {} %} {% set addrs = (entry.get('addresses') or []) | join(', ') %} {% set gw = entry.get('gateway') or '' %} {% set dns_list = (entry.get('dns') or []) | join(', ') %} {% set routes = entry.get('routes') or [] %} {% endfor %} {% if not (interfaces or []) %} {% endif %}
Interface MAC Address IP Address State Zone IP Config Actions
{{ iface.get('name', 'unknown') }} {{ iface.get('mac', 'N/A') }} {% for ip in iface.get('ips', []) %} {{ ip }}{% if not loop.last %}, {% endif %} {% endfor %} {% if not iface.get('ips') %}N/A{% endif %} {{ 'Up' if iface.get('state') == 'UP' else 'Down' }} {% if zones %} {% else %} No zones configured {% endif %}
No interfaces found
{% endblock %}