vrf.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {% extends 'generic/object.html' %}
  2. {% load buttons %}
  3. {% load helpers %}
  4. {% load plugins %}
  5. {% block title %}VRF {{ object }}{% endblock %}
  6. {% block content %}
  7. <div class="row">
  8. <div class="col col-md-6">
  9. <div class="card">
  10. <h5 class="card-header">
  11. VRF
  12. </h5>
  13. <div class="card-body">
  14. <table class="table table-hover attr-table">
  15. <tr>
  16. <th scope="row">Route Distinguisher</th>
  17. <td>{{ object.rd|placeholder }}</td>
  18. </tr>
  19. <tr>
  20. <th scope="row">Tenant</th>
  21. <td>
  22. {% if object.tenant.group %}
  23. {{ object.tenant.group|linkify }} /
  24. {% endif %}
  25. {{ object.tenant|linkify|placeholder }}
  26. </td>
  27. </tr>
  28. <tr>
  29. <th scope="row">Unique IP Space</th>
  30. <td>{% checkmark object.enforce_unique %}</td>
  31. </tr>
  32. <tr>
  33. <th scope="row">Description</th>
  34. <td>{{ object.description|placeholder }}</td>
  35. </tr>
  36. <tr>
  37. <th scope="row">Prefixes</th>
  38. <td>
  39. <a href="{% url 'ipam:prefix_list' %}?vrf_id={{ object.pk }}">{{ prefix_count }}</a>
  40. </td>
  41. </tr>
  42. <tr>
  43. <th scope="row">IP Addresses</th>
  44. <td>
  45. <a href="{% url 'ipam:ipaddress_list' %}?vrf_id={{ object.pk }}">{{ ipaddress_count }}</a>
  46. </td>
  47. </tr>
  48. </table>
  49. </div>
  50. </div>
  51. {% plugin_left_page object %}
  52. </div>
  53. <div class="col col-md-6">
  54. {% include 'inc/panels/tags.html' %}
  55. {% include 'inc/panels/custom_fields.html' %}
  56. {% plugin_right_page object %}
  57. </div>
  58. </div>
  59. <div class="row">
  60. <div class="col col-md-6">
  61. {% include 'inc/panel_table.html' with table=import_targets_table heading="Import Route Targets" %}
  62. </div>
  63. <div class="col col-md-6">
  64. {% include 'inc/panel_table.html' with table=export_targets_table heading="Export Route Targets" %}
  65. </div>
  66. </div>
  67. <div class="row">
  68. <div class="col col-md-12">
  69. {% plugin_full_width_page object %}
  70. </div>
  71. </div>
  72. {% endblock %}