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 %}
|
{% if port.baseport %}
Port |
{{ port.baseport }} |
{% endif %}
Port name |
{{ port.ifalias|default:"N/A" }} |
IfIndex |
{{ port.ifindex }} |
Link |
{{ port.get_link_display|capfirst }} |
Speed |
{{ port.speed }} Mbit |
{% if port.duplex %}
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 %}
|
{% endif %}
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 %}
|
{% if port.baseport %}
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 %}
|
{% endif %}
{% if port.gwportprefix_set.all %}
Addresses |
|
|
{% endif %}
{% with port.below_me as below_me %}{% with port.above_me as above_me %}
{% if below_me or above_me %}
Stacking/bundling |
{% if below_me %}
Lower layer |
|
{% endif %}
{% if above_me %}
Higher layer |
|
{% endif %}
{% endif %}
{% endwith %}{% endwith %}
Statistics |
|
{% with port.get_rrd_data_sources as dss %}
{% if dss|length %}
{% else %}
N/A
{% endif %}
{% endwith %}
|
{% if port.baseport %}
Actions |
|
|
{% endif %}
{% endblock %}