{% if selectable and perms.dcim.change_interface or perms.dcim.delete_interface %}
|
{% endif %}
{{ iface.name }}
{% if iface.lag %}
{{ iface.lag.name }}
{% endif %}
{% if iface.description %}
{% endif %}
|
{{ iface.mtu|default:"" }} |
{{ iface.mac_address|default:"" }} |
{% if iface.is_lag %}
LAG interface
{{ iface.member_interfaces.all|join:", "|default:"No members" }}
|
{% elif iface.is_virtual %}
Virtual interface |
{% elif iface.is_wireless %}
Wireless interface |
{% elif iface.connection %}
{% with iface.connected_interface as connected_iface %}
{{ connected_iface.device }}
|
{{ connected_iface }}
|
{% endwith %}
{% elif iface.circuit_termination %}
{% with iface.circuit_termination.get_peer_termination as peer_termination %}
{% if peer_termination %}
{% if peer_termination.interface %}
{{ peer_termination.interface.device }}
({{ peer_termination.site }})
{% else %}
{{ peer_termination.site }}
{% endif %}
via
{% endif %}
{{ iface.circuit_termination.circuit }}
|
{% endwith %}
{% else %}
Not connected
|
{% endif %}
{% if show_graphs %}
{% if iface.circuit_termination or iface.connection %}
{% endif %}
{% endif %}
{% if perms.ipam.add_ipaddress %}
{% endif %}
{% if perms.dcim.change_interface %}
{% if not iface.is_virtual %}
{% if iface.connection %}
{% if iface.connection.connection_status %}
{% else %}
{% endif %}
{% elif iface.circuit_termination and perms.circuits.change_circuittermination %}
{% else %}
{% endif %}
{% endif %}
{% endif %}
{% if perms.dcim.delete_interface %}
{% if iface.connection or iface.circuit_termination %}
{% else %}
{% endif %}
{% endif %}
|
{% for ip in iface.ip_addresses.all %}
{% if selectable and perms.dcim.change_interface or perms.dcim.delete_interface %}
|
{% endif %}
{{ ip }}
{% if ip.description %}
{% endif %}
{% if device.primary_ip4 == ip or device.primary_ip6 == ip %}
Primary
{% endif %}
|
{% if ip.vrf %}
{{ ip.vrf }}
{% else %}
Global
{% endif %}
|
{{ ip.get_status_display }}
|
{% if perms.ipam.change_ipaddress %}
{% endif %}
{% if perms.ipam.delete_ipaddress %}
{% endif %}
|
{% endfor %}