Skip to content

Commit

Permalink
Closes netbox-community#661: Display relevant IP addressing when view…
Browse files Browse the repository at this point in the history
…ing a circuit
  • Loading branch information
jeremystretch committed Oct 31, 2016
1 parent 30c935f commit 4fbc5aa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions netbox/templates/circuits/circuit.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,21 @@ <h1>{{ circuit.provider }} - {{ circuit.cid }}</h1>
{% endif %}
</td>
</tr>
<tr>
<td>IP Addressing</td>
<td>
{% if circuit.interface %}
{% for ip in circuit.interface.ip_addresses.all %}
{% if not forloop.first %}<br />{% endif %}
<a href="{% url 'ipam:ipaddress' pk=ip.pk %}">{{ ip }}</a> ({{ ip.vrf|default:"Global" }})
{% empty %}
<span class="text-muted">None</span>
{% endfor %}
{% else %}
<span class="text-muted">N/A</span>
{% endif %}
</td>
</tr>
<tr>
<td>Cross-Connect</td>
<td>
Expand Down

0 comments on commit 4fbc5aa

Please sign in to comment.