{% load port_info %} {% if port.baseport %} {% endif %} {% if port.gwportprefix_set.all %} {% endif %}
Connection
Trunk {{ port.trunk|yesno:"Yes,No,N/A" }}
Configured VLAN {{ port.vlan|default:"N/A" }} {% if detention.status == 'quarantined' %} (Quarantined by Arnold) {% endif %}
Detected VLANs {% with port.get_sorted_vlans as swportvlans %} {% if swportvlans %} {% else %} N/A {% endif %} {% endwith %}
To IP device {% if port.to_netbox %} {{ port.to_netbox }} {% else %} N/A {% endif %}
To port {% if port.to_interface %} {{ port.to_interface }} {% else %} N/A {% endif %}
Patched to {% if port.patches.count %} {% else %} N/A {% endif %}
Last CAM record {% with port.get_last_cam_record.end_time|timesince as time_since %} {% if time_since %} {{ time_since }} ago {% else %} Today {% endif %} {% endwith %}
Addresses
{% for gwprefix in port.gwportprefix_set.all %} {% endfor %}
IP Prefix
{{ gwprefix.gw_ip }} {{ gwprefix.prefix.net_address }}