2017-08-29 22:42:06 -04:00
|
|
|
{% load helpers %}
|
|
|
|
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="float-end">
|
2016-12-14 13:47:22 -05:00
|
|
|
{% if not termination and perms.circuits.add_circuittermination %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<a href="{% url 'circuits:circuittermination_add' circuit=object.pk %}?term_side={{ side }}" class="btn btn-sm btn-success">
|
|
|
|
<span class="bi bi-plus" aria-hidden="true"></span> Add
|
2016-12-14 13:47:22 -05:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if termination and perms.circuits.change_circuittermination %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<a href="{% url 'circuits:circuittermination_edit' pk=termination.pk %}" class="btn btn-sm btn-warning">
|
|
|
|
<span class="bi bi-pencil-fill" aria-hidden="true"></span> Edit
|
2016-12-14 13:47:22 -05:00
|
|
|
</a>
|
2021-03-13 02:19:42 -07:00
|
|
|
<a href="{% url 'circuits:circuit_terminations_swap' pk=object.pk %}" class="btn btn-sm btn-primary">
|
2020-11-06 14:33:20 -05:00
|
|
|
<span class="mdi mdi-swap-vertical" aria-hidden="true"></span> Swap
|
2016-12-14 13:47:22 -05:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if termination and perms.circuits.delete_circuittermination %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<a href="{% url 'circuits:circuittermination_delete' pk=termination.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-danger">
|
|
|
|
<span class="bi bi-trash-fill" aria-hidden="true"></span> Delete
|
2016-12-14 13:47:22 -05:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<strong>Termination - {{ side }} Side</strong>
|
|
|
|
</div>
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card-body">
|
2016-12-14 13:47:22 -05:00
|
|
|
{% if termination %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<table class="table table-hover attr-table">
|
2016-12-14 13:47:22 -05:00
|
|
|
<tr>
|
|
|
|
<td>Site</td>
|
|
|
|
<td>
|
2017-02-28 12:11:43 -05:00
|
|
|
{% if termination.site.region %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<a href="{{ termination.site.region.get_absolute_url }}">{{ termination.site.region }}</a> /
|
2017-02-28 12:11:43 -05:00
|
|
|
{% endif %}
|
2021-02-26 17:23:23 -05:00
|
|
|
<a href="{{ termination.site.get_absolute_url }}">{{ termination.site }}</a>
|
2016-12-14 13:47:22 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Termination</td>
|
|
|
|
<td>
|
2021-03-01 21:34:42 -05:00
|
|
|
{% if termination.mark_connected %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<span class="text-success"><i class="mdi mdi-check-bold"></i></span>
|
|
|
|
<span class="text-muted">Marked as connected</span>
|
2021-03-01 21:34:42 -05:00
|
|
|
{% elif termination.cable %}
|
2021-04-15 15:26:59 -07:00
|
|
|
|
|
|
|
<div class="float-end">
|
|
|
|
<a href="{% url 'circuits:circuittermination_trace' pk=termination.pk %}" class="btn btn-primary btn-sm lh-1" title="Trace">
|
|
|
|
<i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i>
|
|
|
|
</a>
|
2018-11-08 12:27:15 -05:00
|
|
|
{% if perms.dcim.delete_cable %}
|
2021-04-15 15:26:59 -07:00
|
|
|
<a href="{% url 'dcim:cable_delete' pk=termination.cable.pk %}?return_url={{ termination.circuit.get_absolute_url }}" title="Remove cable" class="btn btn-danger btn-sm lh-1">
|
2021-03-13 02:19:42 -07:00
|
|
|
<i class="mdi mdi-ethernet-cable-off" aria-hidden="true"></i> Disconnect
|
|
|
|
</a>
|
2021-04-15 15:26:59 -07:00
|
|
|
{% endif %}
|
2021-03-13 02:19:42 -07:00
|
|
|
</div>
|
2021-04-15 15:26:59 -07:00
|
|
|
|
2018-10-30 16:30:03 -04:00
|
|
|
<a href="{{ termination.cable.get_absolute_url }}">{{ termination.cable }}</a>
|
2020-07-15 10:01:01 -04:00
|
|
|
{% with peer=termination.get_cable_peer %}
|
|
|
|
to
|
|
|
|
{% if peer.device %}
|
|
|
|
<a href="{{ peer.device.get_absolute_url }}">{{ peer.device }}</a>
|
|
|
|
{% elif peer.circuit %}
|
|
|
|
<a href="{{ peer.circuit.get_absolute_url }}">{{ peer.circuit }}</a>
|
|
|
|
{% endif %}
|
2021-04-15 15:26:59 -07:00
|
|
|
<span class="text-muted">{{ peer }}</span>
|
2020-07-15 10:01:01 -04:00
|
|
|
{% endwith %}
|
2016-12-14 13:47:22 -05:00
|
|
|
{% else %}
|
2018-12-19 09:36:45 -05:00
|
|
|
{% if perms.dcim.add_cable %}
|
2021-04-15 15:26:59 -07:00
|
|
|
<div class="float-end">
|
2019-06-17 16:27:26 -04:00
|
|
|
<span class="dropdown">
|
2021-03-13 02:19:42 -07:00
|
|
|
<button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
2020-11-06 14:49:14 -05:00
|
|
|
<span class="mdi mdi-ethernet-cable" aria-hidden="true"></span> Connect
|
2019-06-17 16:27:26 -04:00
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right">
|
2020-11-19 12:24:52 -05:00
|
|
|
<li><a href="{% url 'circuits:circuittermination_connect' termination_a_id=termination.pk termination_b_type='interface' %}?termination_b_site={{ termination.site.pk }}&return_url={{ object.get_absolute_url }}">Interface</a></li>
|
|
|
|
<li><a href="{% url 'circuits:circuittermination_connect' termination_a_id=termination.pk termination_b_type='front-port' %}?termination_b_site={{ termination.site.pk }}&return_url={{ object.get_absolute_url }}">Front Port</a></li>
|
|
|
|
<li><a href="{% url 'circuits:circuittermination_connect' termination_a_id=termination.pk termination_b_type='rear-port' %}?termination_b_site={{ termination.site.pk }}&return_url={{ object.get_absolute_url }}">Rear Port</a></li>
|
|
|
|
<li><a href="{% url 'circuits:circuittermination_connect' termination_a_id=termination.pk termination_b_type='circuit-termination' %}?termination_b_site={{ termination.site.pk }}&return_url={{ object.get_absolute_url }}">Circuit Termination</a></li>
|
2019-06-17 16:27:26 -04:00
|
|
|
</ul>
|
|
|
|
</span>
|
2018-10-30 12:16:22 -04:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-03-18 11:57:59 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2021-04-15 15:26:59 -07:00
|
|
|
{% comment %} {% else %} {% endcomment %}
|
2021-03-18 11:57:59 -04:00
|
|
|
<tr>
|
2021-04-01 10:21:41 -04:00
|
|
|
<td>Provider Network</td>
|
2021-03-18 11:57:59 -04:00
|
|
|
<td>
|
2021-04-01 10:21:41 -04:00
|
|
|
<a href="{{ termination.provider_network.get_absolute_url }}">{{ termination.provider_network }}</a>
|
2021-03-18 11:57:59 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
2016-12-14 13:47:22 -05:00
|
|
|
<tr>
|
|
|
|
<td>Speed</td>
|
|
|
|
<td>
|
2021-03-13 02:19:42 -07:00
|
|
|
{% if termination.port_speed and termination.upstream_speed %}
|
|
|
|
<i class="mdi mdi-arrow-down-bold" title="Downstream"></i> {{ termination.port_speed|humanize_speed }}
|
|
|
|
<i class="mdi mdi-arrow-up-bold" title="Upstream"></i> {{ termination.upstream_speed|humanize_speed }}
|
|
|
|
{% elif termination.port_speed %}
|
|
|
|
{{ termination.port_speed|humanize_speed }}
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">—</span>
|
|
|
|
{% endif %}
|
2016-12-14 13:47:22 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Cross-Connect</td>
|
2018-11-05 13:00:46 -05:00
|
|
|
<td>{{ termination.xconnect_id|placeholder }}</td>
|
2016-12-14 13:47:22 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Patch Panel/Port</td>
|
2018-11-05 13:00:46 -05:00
|
|
|
<td>{{ termination.pp_info|placeholder }}</td>
|
2016-12-14 13:47:22 -05:00
|
|
|
</tr>
|
2018-11-05 13:53:22 -05:00
|
|
|
<tr>
|
|
|
|
<td>Description</td>
|
|
|
|
<td>{{ termination.description|placeholder }}</td>
|
|
|
|
</tr>
|
2016-12-14 13:47:22 -05:00
|
|
|
</table>
|
|
|
|
{% else %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<span class="text-muted">None</span>
|
2016-12-14 13:47:22 -05:00
|
|
|
{% endif %}
|
2021-03-13 02:19:42 -07:00
|
|
|
</div>
|
2016-12-14 13:47:22 -05:00
|
|
|
</div>
|