{% extends "portadmin/base.html" %} {% load portadmin %} {% block base_header_title %} PortAdmin - {{ netbox.get_short_sysname }} {% endblock %} {% block content %} {% if interfaces %}
Port | A | O | Port Description | Vlan | {% if voice_vlan %}Tel | {% endif %}||||
---|---|---|---|---|---|---|---|---|---|
{{ interface.ifname }} |
|
|
{% comment %}IFALIAS{% endcomment %}
{% if interface.iseditable %} {% else %} {{ interface.ifalias }} {% endif %} | {% comment %} If interface is a trunk, display link to trunk_edit if allowed If interface is not a trunk, display dropdown to choose vlan, or if not allowed to edit display access vlan {% endcomment %}{% if interface.trunk and not interface.voice_activated %} Trunk {% else %} {% if interface.iseditable %} {% else %} {{ interface.vlan|default_if_none:'' }} {% endif %} {% endif %} | {% comment %} If voice is activated the interface is a trunk. This need to check specifically for this. {% endcomment %} {% if voice_vlan %}{% if interface.voice_activated or not interface.trunk %} {% else %} {% endif %} | {% endif %}||||