{% for dev_type, devices in network.items() %}
{% for device in devices %}
{% endfor %}
{% endfor %}
{{ 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 %}
{% endfor %}
{% endfor %}
{{ sub_dev.id }}
{{ sub_dev.description }}