{% macro ifstatus(ifstatus) -%} {% if not ifstatus %} Network hardware not detected at all! {% else %}
Interface Name | {{ ifstatus.ifname }} |
---|---|
Status | {{ ifstatus.state }} |
MAC Address | {{ ifstatus.mac }} |
IPv4 Addresses |
{% for addr in ifstatus.ipv4addrs %}
{{ addr.addr }}/{{ addr.prefix}} ({{ addr.scope }}) {% endfor %} |
IPv6 Addresses |
{% for addr in ifstatus.ipv6addrs %}
{{ addr.addr }}/{{ addr.prefix}} ({{ addr.scope }}) {% endfor %} {% if ifstatus.radio_state %} |
Radio State | {{ ifstatus.radio_state }} |
SSID | {{ ifstatus.ssid }} |
Frequency | {{ ifstatus.freq }} |
Signal Strength | {{ ifstatus.signal_dbm }} {% endif %} |
{{ contents }}