{% extends "bootstrap.html" %} {% block title %}{{super()}} :: {{ router.hostname }}{% endblock %} {% block head %}{{super()}} {% endblock %} {% block content %}

Router: {{ router.hostname }}

{%- if mac %}

Perma-Link: {{ url_for('router_mac', mac=mac, _external=True) }}

{%- endif %}
System
{%- if router.status_text %} {%- endif %} {%- if router.description %} {%- endif %} {%- if router.position_comment %} {%- endif %} {%- if router.hood %} {%- endif %} {%- if router.user or router.contact %} {%- endif %}
Hostname {{ router.hostname }} {%- if router.netifs|webui_addr %} (WebUI) {%- endif %}
Status{{ router.status }} {%- if router.status == "online" %} ({{ router.sys_uptime|format_ts_diff }} up) {%- endif -%}
Created {{ router.created|utc2local|format_dt }}
Last contact {{ router.last_contact|utc2local|format_dt }} ({{ router.last_contact|utc2local|format_dt_ago }}){{- "" -}}
Status Text{{ router.status_text }}
Description{{ router.description }}
Position{{ router.position_comment }}
Hood{{ router.hood }} {%- if router.community %} ({{ router.community }}) {%- endif -%} {%- if router.reset %} - Router has lost its position! {%- endif -%}
User {%- if router.user -%} {{ router.user }} {%- if router.contact %} ({{ router.contact|anon_email }}) {%- endif -%} {%- else -%} {{ router.contact|anon_email }} {%- endif -%}
Hardware{{ router.hardware }}
WAN Uplink
Clients{{ router.clients }}
Software
Firmware{{ router.firmware }}
Operating System{{ router.os }}
Kernel{{ router.kernel }}
B.A.T.M.A.N. adv{{ router.batman }}
Nodewatcher{{ router.nodewatcher }}
{%- if not router.neighbours|length > 0 %}
{%- endif %}
Events
{%- for event in router.events[-5:] %} {%- endfor %}
{{ event.time|utc2local|format_dt|nbsp|safe }} {{ event.type }} {{ event.comment }}
{%- if router.neighbours|length > 0 %}
Neighbours
{%- for neighbour in router.neighbours %} {%- endfor %}
Hostname MAC Address Quality Interface
{%- if neighbour.hostname -%}{{ neighbour.hostname }}{%- else -%}---{%- endif -%} {{ neighbour.mac }} {{ neighbour.quality }} {{ neighbour.netif }}
{# hack for graph vertical align #} {%- if router.neighbours|length < 3 %} {%- for n in range(3- router.neighbours|length) %}
{%- endfor %} {%- endif %}
{%- endif %}
Network Interfaces
    {# make sure that br-mesh is on top of the list #} {%- for netif in router.netifs if netif.netif == 'br-mesh' %}
  • {{ netif.netif }}

    {{ netif.mac }}

    {%- if netif.ipv6_fe80_addr -%} {{ netif.ipv6_fe80_addr }} {%- else -%} {{ netif.mac|mac2fe80 }} {%- endif -%} {%- if netif.ipv4_addr -%}
    {{ netif.ipv4_addr }} {%- endif -%} {%- for ipv6_addr in netif.ipv6_addrs -%}
    {{ ipv6_addr }} {%- endfor -%}
    {%- if netif.rx is defined %}
    {{ netif.rx|humanize_bytes }}/s {{ netif.tx|humanize_bytes }}/s
    {%- endif %}
  • {%- endfor %} {%- for netif in router.netifs if netif.netif != 'br-mesh' %}
  • {{ netif.netif }}

    {{ netif.mac }}

    {%- if netif.wlan_type -%} {{netif.wlan_type}},  {%- endif -%} {%- if netif.wlan_channel -%} Channel: {{netif.wlan_channel}},  {%- endif -%} {%- if netif.wlan_ssid -%} SSID: {{netif.wlan_ssid}},  {%- endif -%} {%- if netif.wlan_txpower -%} Tx-Power: {{netif.wlan_txpower}} {%- endif -%}
    {%- if netif.ipv6_fe80_addr -%} {{ netif.ipv6_fe80_addr }} {%- else -%} {{ netif.mac|mac2fe80 }} {%- endif -%} {%- if netif.ipv4_addr -%}
    {{ netif.ipv4_addr }} {%- endif -%} {%- for ipv6_addr in netif.ipv6_addrs -%}
    {{ ipv6_addr }} {%- endfor -%}
    {%- if netif.rx is defined %}
    {{ netif.rx|humanize_bytes }}/s {{ netif.tx|humanize_bytes }}/s
    {%- endif %}
  • {%- endfor %}
Clients
Average Load
Memory
Processes
{% endblock %}