Parcourir la source

Include the NAT IP for a Device if one exists

Jeremy Stretch il y a 9 ans
Parent
commit
df54a4242a
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      netbox/templates/dcim/device.html

+ 2 - 0
netbox/templates/dcim/device.html

@@ -93,6 +93,8 @@
                             <a href="{% url 'ipam:ipaddress' pk=device.primary_ip.pk %}">{{ device.primary_ip.address.ip }}</a>
                             {% if device.primary_ip.nat_inside %}
                                 <span>(NAT for {{ device.primary_ip.nat_inside.address.ip }})</span>
+                            {% elif device.primary_ip.nat_outside %}
+                                <span>(NAT: {{ device.primary_ip.nat_outside.address.ip }})</span>
                             {% endif %}
                         {% else %}
                             <span class="text-muted">Not defined</span>