ipaddress.html 675 B

123456789101112131415161718192021
  1. <tr>
  2. <td>
  3. <a href="{% url 'ipam:ipaddress' pk=ip.pk %}">{{ ip }}</a>
  4. </td>
  5. <td>
  6. {{ ip.vrf|default:"Global" }}
  7. </td>
  8. <td>{{ ip.interface }}</td>
  9. <td>
  10. {% if device.primary_ip4 == ip or device.primary_ip6 == ip %}
  11. <span class="label label-success">Primary</span>
  12. {% endif %}
  13. </td>
  14. <td class="text-right">
  15. {% if perms.ipam.delete_ipaddress %}
  16. <a href="{% url 'ipam:ipaddress_delete' pk=ip.pk %}" class="btn btn-danger btn-xs">
  17. <i class="glyphicon glyphicon-trash" aria-hidden="true" title="Delete IP address"></i>
  18. </a>
  19. {% endif %}
  20. </td>
  21. </tr>