Fixes #1125: Include MAC addresses on a device's interface list

This commit is contained in:
Jeremy Stretch 2017-05-02 15:01:27 -04:00
parent 1f7ef15ad1
commit 6791ff6192
5 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@
<td>
<i class="fa fa-fw fa-keyboard-o"></i> {{ cp.name }}
</td>
<td></td>
{% if cp.cs_port %}
<td>
<a href="{% url 'dcim:device' pk=cp.cs_port.device.pk %}">{{ cp.cs_port.device }}</a>

View File

@ -7,6 +7,7 @@
<td>
<i class="fa fa-fw fa-keyboard-o"></i> {{ csp.name }}
</td>
<td></td>
{% if csp.connected_console %}
<td>
<a href="{% url 'dcim:device' pk=csp.connected_console.device.pk %}">{{ csp.connected_console.device }}</a>

View File

@ -16,6 +16,7 @@
<br /><small class="text-muted">{{ iface.member_interfaces.all|join:", "|default:"No members" }}</small>
{% endif %}
</td>
<td>{{ iface.mac_address|default:"" }}</td>
{% if iface.is_lag %}
<td colspan="2" class="text-muted">LAG interface</td>
{% elif iface.is_virtual %}

View File

@ -7,6 +7,7 @@
<td>
<i class="fa fa-fw fa-bolt"></i> {{ po.name }}
</td>
<td></td>
{% if po.connected_port %}
<td>
<a href="{% url 'dcim:device' pk=po.connected_port.device.pk %}">{{ po.connected_port.device }}</a>

View File

@ -7,6 +7,7 @@
<td>
<i class="fa fa-fw fa-bolt"></i> {{ pp.name }}
</td>
<td></td>
{% if pp.power_outlet %}
<td>
<a href="{% url 'dcim:device' pk=pp.power_outlet.device.pk %}">{{ pp.power_outlet.device }}</a>