index.html 523 B

1234567891011121314151617
  1. {% if interfaces %}
  2. <table border="1" width="100%">
  3. <tr><th>type</th><th>name</th><th>address</th></tr>
  4. {% for key, value in interfaces.items %}
  5. <tr><td>{{ key }}</td>
  6. {% for ifkey, ifvalue in value.items %}
  7. <td>{% url 'device-views-interface' key ifkey as url_interface %}
  8. <a href="{{ url_interface }}">{{ ifkey }}</a></td><td>{{ ifvalue.address }}</td>
  9. {% endfor %}
  10. </tr>
  11. {% endfor %}
  12. </table>
  13. {% else %}
  14. <p>No interfaces.</p>
  15. {% endif %}