diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index e0f38afef..3f0235a37 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -35,14 +35,26 @@ DEVICEBAY_STATUS = """ """ INTERFACE_IPADDRESSES = """ -
- {% for ip in value.all %} - {% if ip.status != 'active' %} - {{ ip }} - {% else %} - {{ ip }} - {% endif %} - {% endfor %} +
+
+ {% for ip in value.all %} + {% if ip.status != 'active' %} +
+ {{ ip }} +
+
+ {% copy_content record.pk prefix="ipaddress_" %} +
+ {% else %} +
+ {{ ip }} +
+
+ {% copy_content record.pk prefix="ipaddress_" %} +
+ {% endif %} + {% endfor %} +
"""