{% for key, value in gateways.items() %}
{% for val in value %}
<tr>
<td>{{key}}</td>
<td>{{val.name}}</td>
<td>{{val.mainIP}}</td>
<td></td>
<td></td>
</tr>
{% endfor %}
{% endfor %}
{% for key, value in clusters.items() %}
{% for val in value %}
<tr>
<td>{{key}}</td>
<td>{{val.name}}</td>
<td>{{val.mainIP}}</td>
{% for member in val.members %}
<td>{{member.name}}</td>
<td>{{member.ip}}</td>
{% endfor %}
</tr>
{% endfor %}
{% endfor %}