{% 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 }})
|
IPv6 Addresses |
{% for addr in ifstatus.ipv6addrs %}
{{ addr.addr }}/{{ addr.prefix}} ({{ addr.scope }})
|
{{ contents }}{% endif%} {%- endmacro %}