| 
									
										
										
										
											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"> | 
					
						
							| 
									
										
										
										
											2021-08-03 11:41:46 -07:00
										 |  |  |         <div class="float-md-end"> | 
					
						
							| 
									
										
										
										
											2016-12-14 13:47:22 -05:00
										 |  |  |             {% if not termination and perms.circuits.add_circuittermination %} | 
					
						
							| 
									
										
										
										
											2022-03-03 16:42:48 -05:00
										 |  |  |                 <a href="{% url 'circuits:circuittermination_add' %}?circuit={{ object.pk }}&term_side={{ side }}&return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-success lh-1"> | 
					
						
							| 
									
										
										
										
											2021-04-21 11:31:28 -07:00
										 |  |  |                     <span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add | 
					
						
							| 
									
										
										
										
											2016-12-14 13:47:22 -05:00
										 |  |  |                 </a> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  |             {% if termination and perms.circuits.change_circuittermination %} | 
					
						
							| 
									
										
										
										
											2022-07-01 15:10:31 -04:00
										 |  |  |                 <a href="{% url 'circuits:circuittermination_edit' pk=termination.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-warning lh-1"> | 
					
						
							| 
									
										
										
										
											2021-04-21 11:31:28 -07:00
										 |  |  |                     <span class="mdi mdi-pencil" aria-hidden="true"></span> Edit | 
					
						
							| 
									
										
										
										
											2016-12-14 13:47:22 -05:00
										 |  |  |                 </a> | 
					
						
							| 
									
										
										
										
											2022-07-01 15:10:31 -04:00
										 |  |  |                 <a href="{% url 'circuits:circuit_terminations_swap' pk=object.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-primary lh-1"> | 
					
						
							| 
									
										
										
										
											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-07-20 21:21:03 -04:00
										 |  |  |                 <a href="{% url 'circuits:circuittermination_delete' pk=termination.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-danger lh-1"> | 
					
						
							| 
									
										
										
										
											2021-04-21 11:31:28 -07:00
										 |  |  |                     <span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Delete | 
					
						
							| 
									
										
										
										
											2016-12-14 13:47:22 -05:00
										 |  |  |                 </a> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2022-07-01 15:10:31 -04:00
										 |  |  |         <h5>Termination {{ side }}</h5> | 
					
						
							| 
									
										
										
										
											2016-12-14 13:47:22 -05:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |     <div class="card-body"> | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |       {% if termination %} | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |         <table class="table table-hover attr-table"> | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |           {% if termination.site %} | 
					
						
							| 
									
										
										
										
											2016-12-14 13:47:22 -05:00
										 |  |  |             <tr> | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |               <td>Site</td> | 
					
						
							|  |  |  |               <td> | 
					
						
							|  |  |  |                 {% if termination.site.region %} | 
					
						
							| 
									
										
										
										
											2022-03-22 14:51:20 -04:00
										 |  |  |                   {{ termination.site.region|linkify }} / | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |                 {% endif %} | 
					
						
							| 
									
										
										
										
											2022-03-22 14:51:20 -04:00
										 |  |  |                 {{ termination.site|linkify }} | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							|  |  |  |             <tr> | 
					
						
							|  |  |  |               <td>Termination</td> | 
					
						
							|  |  |  |               <td> | 
					
						
							|  |  |  |                 {% if termination.mark_connected %} | 
					
						
							|  |  |  |                   <span class="text-success"><i class="mdi mdi-check-bold"></i></span> | 
					
						
							|  |  |  |                   <span class="text-muted">Marked as connected</span> | 
					
						
							|  |  |  |                 {% elif termination.cable %} | 
					
						
							| 
									
										
										
										
											2022-06-01 16:48:56 -04:00
										 |  |  |                   <a class="d-block d-md-inline" href="{{ termination.cable.get_absolute_url }}">{{ termination.cable }}</a> to | 
					
						
							|  |  |  |                   {% for peer in termination.link_peers %} | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |                     {% if peer.device %} | 
					
						
							| 
									
										
										
										
											2022-03-22 14:51:20 -04:00
										 |  |  |                       {{ peer.device|linkify }}<br/> | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |                     {% elif peer.circuit %} | 
					
						
							| 
									
										
										
										
											2022-03-22 14:51:20 -04:00
										 |  |  |                       {{ peer.circuit|linkify }}<br/> | 
					
						
							| 
									
										
										
										
											2017-02-28 12:11:43 -05:00
										 |  |  |                     {% endif %} | 
					
						
							| 
									
										
										
										
											2022-06-01 16:48:56 -04:00
										 |  |  |                     {{ peer|linkify }}{% if not forloop.last %},{% endif %} | 
					
						
							|  |  |  |                   {% endfor %} | 
					
						
							| 
									
										
										
										
											2021-08-25 13:50:59 -04:00
										 |  |  |                   <div class="mt-1"> | 
					
						
							| 
									
										
										
										
											2021-08-03 11:41:46 -07:00
										 |  |  |                     <a href="{% url 'circuits:circuittermination_trace' pk=termination.pk %}" class="btn btn-primary btn-sm lh-1" title="Trace"> | 
					
						
							| 
									
										
										
										
											2021-08-25 13:50:59 -04:00
										 |  |  |                       <i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i> Trace | 
					
						
							| 
									
										
										
										
											2021-08-03 11:41:46 -07:00
										 |  |  |                     </a> | 
					
						
							|  |  |  |                     {% if perms.dcim.delete_cable %} | 
					
						
							|  |  |  |                       <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"> | 
					
						
							|  |  |  |                         <i class="mdi mdi-ethernet-cable-off" aria-hidden="true"></i> Disconnect | 
					
						
							|  |  |  |                       </a> | 
					
						
							|  |  |  |                     {% endif %} | 
					
						
							|  |  |  |                   </div> | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |                 {% elif perms.dcim.add_cable %} | 
					
						
							|  |  |  |                   <div class="dropdown"> | 
					
						
							|  |  |  |                     <button type="button" class="btn btn-success btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | 
					
						
							|  |  |  |                       <span class="mdi mdi-ethernet-cable" aria-hidden="true"></span> Connect | 
					
						
							|  |  |  |                     </button> | 
					
						
							|  |  |  |                     <ul class="dropdown-menu"> | 
					
						
							| 
									
										
										
										
											2022-05-23 12:59:05 -04:00
										 |  |  |                       <li><a class="dropdown-item" href="{% url 'dcim:cable_add' %}?a_terminations_type=circuits.circuittermination&a_terminations={{ termination.pk }}&b_terminations_type=dcim.interface&termination_b_site={{ termination.site.pk }}&return_url={{ object.get_absolute_url }}">Interface</a></li> | 
					
						
							|  |  |  |                       <li><a class="dropdown-item" href="{% url 'dcim:cable_add' %}?a_terminations_type=circuits.circuittermination&a_terminations={{ termination.pk }}&b_terminations_type=dcim.frontport&termination_b_site={{ termination.site.pk }}&return_url={{ object.get_absolute_url }}">Front Port</a></li> | 
					
						
							|  |  |  |                       <li><a class="dropdown-item" href="{% url 'dcim:cable_add' %}?a_terminations_type=circuits.circuittermination&a_terminations={{ termination.pk }}&b_terminations_type=dcim.rearport&termination_b_site={{ termination.site.pk }}&return_url={{ object.get_absolute_url }}">Rear Port</a></li> | 
					
						
							|  |  |  |                       <li><a class="dropdown-item" href="{% url 'dcim:cable_add' %}?a_terminations_type=circuits.circuittermination&a_terminations={{ termination.pk }}&b_terminations_type=circuits.circuittermination&termination_b_site={{ termination.site.pk }}&return_url={{ object.get_absolute_url }}">Circuit Termination</a></li> | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |                     </ul> | 
					
						
							|  |  |  |                   </div> | 
					
						
							|  |  |  |                 {% endif %} | 
					
						
							|  |  |  |               </td> | 
					
						
							| 
									
										
										
										
											2016-12-14 13:47:22 -05:00
										 |  |  |             </tr> | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |           {% else %} | 
					
						
							| 
									
										
										
										
											2016-12-14 13:47:22 -05:00
										 |  |  |             <tr> | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |               <td>Provider Network</td> | 
					
						
							| 
									
										
										
										
											2022-03-22 14:51:20 -04:00
										 |  |  |               <td>{{ termination.provider_network|linkify }}</td> | 
					
						
							| 
									
										
										
										
											2021-07-29 11:14:12 -04:00
										 |  |  |             </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 %} | 
					
						
							| 
									
										
										
										
											2022-06-15 22:33:21 +02:00
										 |  |  |                     {{ ''|placeholder }} | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                 {% 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> | 
					
						
							| 
									
										
										
										
											2022-07-01 15:10:31 -04:00
										 |  |  |             <tr> | 
					
						
							|  |  |  |               <td>Tags</td> | 
					
						
							|  |  |  |               <td> | 
					
						
							|  |  |  |                 {% for tag in termination.tags.all %} | 
					
						
							|  |  |  |                   {% tag tag %} | 
					
						
							|  |  |  |                 {% empty %} | 
					
						
							|  |  |  |                   {{ ''|placeholder }} | 
					
						
							|  |  |  |                 {% endfor %} | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							|  |  |  |           {% for group_name, fields in termination.get_custom_fields_by_group.items %} | 
					
						
							|  |  |  |             <tr> | 
					
						
							|  |  |  |               <td colspan="2"> | 
					
						
							|  |  |  |                 <strong>{{ group_name|default:"Custom Fields" }}</strong> | 
					
						
							|  |  |  |               </td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							|  |  |  |             {% for field, value in fields.items %} | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td> | 
					
						
							|  |  |  |                   <span title="{{ field.description|escape }}">{{ field }}</span> | 
					
						
							|  |  |  |                 </td> | 
					
						
							|  |  |  |                 <td> | 
					
						
							|  |  |  |                   {% customfield_value field value %} | 
					
						
							|  |  |  |                 </td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							|  |  |  |             {% endfor %} | 
					
						
							|  |  |  |           {% endfor %} | 
					
						
							| 
									
										
										
										
											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> |