From 98748d901bbd2f3560e96c96c653f608565ed749 Mon Sep 17 00:00:00 2001 From: RobertH1993 Date: Wed, 3 Jul 2024 11:27:19 +0200 Subject: [PATCH] Closes #16716, add NAT IP to device view for OOB IP --- netbox/templates/dcim/device.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index e3ac944bc..d9da53de2 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -223,6 +223,11 @@ {% if object.oob_ip %} {{ object.oob_ip.address.ip }} + {% if object.oob_ip.nat_inside %} + ({% trans "NAT for" %} {{ object.oob_ip.nat_inside.address.ip }}) + {% elif object.oob_ip.nat_outside.exists %} + ({% trans "NAT" %}: {% for nat in object.oob_ip.nat_outside.all %}{{ nat.address.ip }}{% if not forloop.last %}, {% endif %}{% endfor %}) + {% endif %} {% copy_content "oob_ip" %} {% else %} {{ ''|placeholder }}