diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index 1862893ff..3f8b63688 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -36,13 +36,17 @@ DEVICEBAY_STATUS = """ INTERFACE_IPADDRESSES = """
- {% for ip in value.all %} - {% if ip.status != 'active' %} - {{ ip }} - {% else %} - {{ ip }} - {% endif %} - {% endfor %} + {% if value.count >= 3 %} + {{ value.count }} + {% else %} + {% for ip in value.all %} + {% if ip.status != 'active' %} + {{ ip }} + {% else %} + {{ ip }} + {% endif %} + {% endfor %} + {% endif %}
"""