{% load i18n %}
{% if devices|length > 0 %}
{% trans 'Advanced information about devices, interfaces and hna for expert users.' %}
{% for device in devices %}
{% if device.type %}
{% trans 'Type' %}: | {{ device.type }} |
{% endif %}
{% if device.description %}
{% trans 'Description' %}: | {{ device.description }} |
{% endif %}
{% if device.routing_protocol %}
{% trans 'Routing protocol' %}: | {{ device.routing_protocol }} {% if device.routing_protocol_version %}{{ device.routing_protocol_version }}{% endif %} |
{% endif %}
{% for interface in device.interface_set.all %}
{% trans 'Interface' %} {{ interface.get_type_display }}
{% if interface.ipv4_address %}
IPv4: | {{ interface.ipv4_address }} |
{% endif %}
{% if interface.ipv6_address %}
IPv6: | {{ interface.ipv6_address }} |
{% endif %}
{% trans 'Status' %}: | {{ interface.get_status_display }} |
{% if interface.mac_address %}
{% trans 'MAC address' %}: | {{ interface.mac_address }} |
{% endif %}
{% if interface.type == 'wifi' or interface.type == 'batman' or interface.type == 'vwifi' %}
{% if interface.wireless_mode or interface.wireless_channel or interface.wireless_polarity or interface.essid or interface.bssid %}
{% trans '+ info' %}
|
{% endif %}
{% endif %}
{% if interface.type == 'wifi' or interface.type == 'batman' or interface.type == 'vwifi' %}
{% if interface.wireless_mode %}
{% trans 'Wireless mode' %}: | {{ interface.get_wireless_mode_display }} |
{% endif %}
{% if interface.wireless_channel %}
{% trans 'Wireless channel' %}: | {{ interface.get_wireless_channel_display }} |
{% endif %}
{% if interface.wireless_polarity %}
{% trans 'Wireless polarity' %}: | {{ interface.get_wireless_polarity_display }} |
{% endif %}
{% if interface.essid %}
ESSID: | {{ interface.essid }} |
{% endif %}
{% if interface.bssid %}
BSSID: | {{ interface.bssid }} |
{% endif %}
{% endif %}
{% endfor %}
{% for hna in device.hna_set.all %}
Hna
{% trans 'Hna route' %}: | {{ hna.route }} |
{% endfor %}
{% endfor %}
{% else %}
{% trans 'This node does not have any device yet.' %}
{% endif %}