{% macro ifstatus(ifstatus) -%}
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 %}
{%- endmacro %} {% macro logbox(name, contents) -%}

{{name}}

{% if contents == None %} Access to {{name}} was denied, or file did not exist. {% else %}
{{ contents }}
{% endif%} {%- endmacro %}