{% 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 }} |
SSID Broadcast? | {{ ifstatus.ssid_broadcast }} |
Channel | {{ ifstatus.channel }} |
TX Power | {{ ifstatus.tx_power }} |
Auth Mode | {{ ifstatus.auth_mode }} |
Signal Strength | {{ ifstatus.signal_dbm }} {% endif %} |
{{ contents }}