{{ iface.name }}
{% if iface.description %}
{% endif %}
|
{% if not iface.is_physical %}
Virtual |
{% elif iface.connection %}
{% with iface.get_connected_interface as connected_iface %}
{{ connected_iface.device }}
|
{{ connected_iface }}
|
{% endwith %}
{% elif iface.circuit %}
{{ iface.circuit }}
|
{% else %}
Not connected |
{% endif %}
{% if iface.circuit or iface.connection %}
{% endif %}
{% if perms.dcim.change_interface %}
{% if iface.is_physical %}
{% if iface.connection %}
{% if iface.connection.connection_status %}
{% else %}
{% endif %}
{% else %}
{% endif %}
{% endif %}
{% endif %}
{% if perms.dcim.delete_interface %}
{% if iface.connection or iface.circuit %}
{% else %}
{% endif %}
{% endif %}
|