{% for dev_type, devices in network.items() %} {% for device in devices %}
{{ device.id }}
{{ device.description }}
{{ device.location }}
{{ device.ip_address }}
{% for sub_dev_type, sub_devs in device.sub_devices.items() %} {% for sub_dev in sub_devs %}
{{ sub_dev.id }}
OUTLET_IMAGE
{{ sub_dev.description }}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}