{% extends "bootstrap.html" %} {% block title %}{{super()}} :: Statistics{%- if selecthood %} for {{ selecthood }}{%- endif -%}{%- if selectgw %} for GW {{ selectgw }}{%- endif -%}{% endblock %} {% block head %}{{super()}} {% endblock %} {% block content %}
Hoods
{%- for hood, value in hoods|dictsort %} {%- endfor %}
Hood G On Off Unk. Sum User Stat
{{ hood }} {{ hoods_gws[hood] or "-" }} {{ value["online"] or 0 }} {{ value["offline"] or 0 }}{%- if value["orphaned"] %} ({{ value["orphaned"] or 0 }}){%- endif %} {{ value["unknown"] or 0 }} {{ hoods_sum[hood]["routers"] }} {{ hoods_sum[hood]["clients"] }} Stats
Sum   {{ router_status.online or 0 }} {{ router_status.offline or 0 }} {{ router_status.unknown or 0 }} {{ router_status.sum or 0 }} {{ clients }} Global
Routers{%- if selecthood %} @ {{ selecthood }}{%- endif -%}{%- if selectgw %} @ {{ selectgw }} (selected only){%- endif -%}
Clients{%- if selecthood %} @ {{ selecthood }}{%- endif -%}{%- if selectgw %} @ {{ selectgw }} (selected only){%- endif -%}
{%- if not selectgw %}
Traffic{%- if selecthood %} @ {{ selecthood }}{%- endif -%}
{%- endif -%}
Newest Routers{%- if selecthood %} @ {{ selecthood }}{%- endif -%}{%- if selectgw %} @ {{ selectgw }}{%- endif -%}
{%- for router in newest_routers|reverse %} {%- endfor %}
Hostname Hood Created
{{ router.hostname }} {{ router.hood }} {{ router.created|utc2local|format_dt }}
Gateways (selected / others){%- if selecthood %} @ {{ selecthood }}{%- endif -%}
{%- for mac, value in gws.items() %} {%- endfor %}
Gateway On Off Unk. Sum Stat

{{ gws_info[mac]["label"] }}

{%- if gws_info[mac]["gw"] %}

{{ mac|int2mac }} {%- if gws_info[mac]["batmac"] %} / {{ gws_info[mac]["batmac"]|int2mac }} {%- endif %}

{%- endif %}
{{ value["selected"]["online"] or 0 }} / {{ value["others"]["online"] or 0 }} {{ value["selected"]["offline"] or 0 }} / {{ value["others"]["offline"] or 0 }} {{ value["selected"]["unknown"] or 0 }} / {{ value["others"]["unknown"] or 0 }} {{ gws_sum[mac]["routers"] if gws_sum[mac] else 0 }} / {{ value["others"]|sumdict if value["others"] else 0 }} Stats
{%- if selectgw %}
Gateway-Details
{%- if gws_info[selectgwint]["ipv4"] %} {%- endif %} {%- if gws_info[selectgwint]["ipv6"] %} {%- endif %} {%- if gws_info[selectgwint]["dhcpstart"] %} {%- endif %} {%- if gws_info[selectgwint]["stats_page"] %} {%- endif %} {%- for a in gws_admin %} {%- endfor %}
Gateway{{ gws_info[selectgwint]["gw"] }}
Interface{{ gws_info[selectgwint]["gwif"] }}
MAC address{{ selectgw }}
BatX interface{{ gws_info[selectgwint]["batX"] }}
Internal IPv4{{ gws_info[selectgwint]["ipv4"] }}
Internal IPv6{{ gws_info[selectgwint]["ipv6"] }}
DHCP range{{ gws_info[selectgwint]["dhcpstart"] }} - {{ gws_info[selectgwint]["dhcpend"] }}
Stats page{{ gws_info[selectgwint]["stats_page"] }}
Admin{{ a }}
{%- endif %}
Router Firmwares{%- if selecthood %} @ {{ selecthood }}{%- endif -%}{%- if selectgw %} @ {{ selectgw }}{%- endif -%}
Router Models{%- if selecthood %} @ {{ selecthood }}{%- endif -%}{%- if selectgw %} @ {{ selectgw }}{%- endif -%}
Router Models per Client{%- if selecthood %} @ {{ selecthood }}{%- endif -%}{%- if selectgw %} @ {{ selectgw }}{%- endif -%}
{% endblock %}