{% if interfaces | length < 1 %}
There are no interfaces available yet, why don't you
add one?
{% else %}
{% for iface in interfaces.values() %}
{% set iface_status = iface.status %}
{{ iface.name }}
Status |
{% if iface_status == "up" %}
{% set status_color = "bg-success" %}
{% elif iface_status == "down" %}
{% set status_color = "bg-danger" %}
{% else %}
{% set status_color = "bg-warning" %}
{% endif %}
{{ iface_status }} |
Description |
{% if iface.description %}
{{ iface.description }} |
{% else %}
{{ EMPTY_FIELD | safe }} |
{% endif %}
IPv4 |
{% if iface.ipv4_address %}
{{ iface.ipv4_address }} |
{% else %}
{{ EMPTY_FIELD | safe }} |
{% endif %}
Listen port |
{% if iface.listen_port %}
{{ iface.listen_port }} |
{% else %}
{{ EMPTY_FIELD | safe }} |
{% endif %}
Peers |
{{ iface.peers | length }} |
{% if iface_status == "up" %}
{% elif iface_status == "down" %}
{% endif %}
{% endfor %}
{% endif %}
{% if interfaces | length > 0 %}
{% endif %}