Back to Netbox

Interface Connection

netbox/templates/dcim/panels/interface_connection.html

4.6.52.2 KB
Original Source

{% extends "ui/panels/_base.html" %} {% load helpers i18n %} {% block panel_content %} {% if object.mark_connected %}

{% trans "Marked as connected" %} {% elif object.cable %}

| {% trans "Cable" %} | {{ object.cable|linkify }} | | {% trans "Path status" %} | {% if object.path.is_complete and object.path.is_active %} {% trans "Reachable" %} {% else %} {% trans "Not Reachable" %} {% endif %} | | {% trans "Path endpoints" %} | {% for endpoint in object.connected_endpoints %} {% if endpoint.parent_object %} {{ endpoint.parent_object|linkify }} {% endif %} {{ endpoint|linkify }} {% if not forloop.last %}
{% endif %} {% empty %} {{ ''|placeholder }} {% endfor %} |

{% elif object.wireless_link %}

| {% trans "Wireless Link" %} | {{ object.wireless_link|linkify }} | {% with peer_interface=object.link_peers.0 %} | {% trans "Device" %} | {{ peer_interface.device|linkify }} | | {% trans "Name" %} | {{ peer_interface|linkify }} | | {% trans "Type" %} | {{ peer_interface.get_type_display }} | {% endwith %} {% else %} {% trans "Not Connected" %} {% if object.is_wired and perms.dcim.add_cable %} {% trans "Connect" %}

{% elif object.is_wireless and perms.wireless.add_wirelesslink %} {% trans "Connect" %} {% endif %} {% endif %} {% endblock panel_content %}