{% for ip_group, addresses in instance.addresses.items %} {% if instance.addresses.items|length > 1 %}