Skip to content

Commit 96878cf

Browse files
committed
Closes #14551: Show assigned tunnel (if any) under interface view
1 parent 25e67eb commit 96878cf

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

netbox/templates/dcim/interface.html

+8-4
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ <h5 class="card-header">{% trans "Interface" %}</h5>
8686
<th scope="row">{% trans "Transmit power (dBm)" %}</th>
8787
<td>{{ object.tx_power|placeholder }}</td>
8888
</tr>
89+
<tr>
90+
<th scope="row">{% trans "Tunnel" %}</th>
91+
<td>{{ object.tunnel_termination.tunnel|linkify|placeholder }}</td>
92+
</tr>
93+
<tr>
94+
<th scope="row">{% trans "L2VPN" %}</th>
95+
<td>{{ object.l2vpn_termination.l2vpn|linkify|placeholder }}</td>
96+
</tr>
8997
</table>
9098
</div>
9199
</div>
@@ -105,10 +113,6 @@ <h5 class="card-header">{% trans "Related Interfaces" %}</h5>
105113
<th scope="row">{% trans "LAG" %}</th>
106114
<td>{{ object.lag|linkify|placeholder }}</td>
107115
</tr>
108-
<tr>
109-
<th scope="row">{% trans "L2VPN" %}</th>
110-
<td>{{ object.l2vpn_termination.l2vpn|linkify|placeholder }}</td>
111-
</tr>
112116
</table>
113117
</div>
114118
</div>

netbox/templates/virtualization/vminterface.html

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ <h5 class="card-header">
6666
<th scope="row">{% trans "802.1Q Mode" %}</th>
6767
<td>{{ object.get_mode_display|placeholder }}</td>
6868
</tr>
69+
<tr>
70+
<th scope="row">{% trans "Tunnel" %}</th>
71+
<td>{{ object.tunnel_termination.tunnel|linkify|placeholder }}</td>
72+
</tr>
6973
</table>
7074
</div>
7175
</div>

0 commit comments

Comments
 (0)