{% extends "ipdevinfo/base.html" %} {% block content %} {% if port.baseport %} {% endif %} {% if port.duplex %} {% endif %} {% if port.baseport %} {% endif %} {% if port.gwportprefix_set.all %} {% endif %} {% with port.below_me as below_me %}{% with port.above_me as above_me %} {% if below_me or above_me %} {% if below_me %} {% endif %} {% if above_me %} {% endif %} {% endif %} {% endwith %}{% endwith %} {% if port.baseport %} {% endif %}
Interface {{ port.ifname }} {% if port.module %}
at {{ port.module.netbox.get_short_sysname }} {% endif %}
At IP device {{ port.netbox }}
Interface {{ port.ifdescr }}
At module {% if port.module %} Module {{ port.module.name }} {% else %} No module {% endif %}
Port {{ port.baseport }}
Port name {{ port.ifalias|default:"N/A" }}
IfIndex {{ port.ifindex }}
Link {{ port.get_link_display|capfirst }}
Speed {{ port.speed }} Mbit
Duplex {{ port.get_duplex_display|capfirst }}
Trunk {{ port.trunk|yesno:"Yes,No,N/A" }}
Configured VLAN {{ port.vlan|default:"N/A" }}
Detected VLANs {% with port.swportvlan_set.all as swportvlans %} {% if swportvlans %}
    {% for swportvlan in swportvlans %}
  • {{ swportvlan.vlan }}
    • Direction: {{ swportvlan.get_direction_display }}
  • {% endfor %}
{% 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.patch_set.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 %}
IPPrefix
{{ gwprefix.gw_ip}} {{ gwprefix.prefix.net_address }}
Stacking/bundling
Lower layer
Higher layer
Statistics
{% with port.get_rrd_data_sources as dss %} {% if dss|length %} {% for ds in dss %} {% endfor %}
Data source Threshold
{{ ds.description }} {% if ds.threshold %}{{ ds.threshold }}{% else %}not configured{% endif %}
{% else %} N/A {% endif %} {% endwith %}
Actions
{% endblock %}