| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | <div class="row"> | 
					
						
							| 
									
										
										
										
											2016-12-09 16:23:11 -05:00
										 |  |  |     <div class="col-sm-8 col-md-9"> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |         <ol class="breadcrumb"> | 
					
						
							| 
									
										
										
										
											2016-07-29 11:20:47 -04:00
										 |  |  |             <li><a href="{% url 'ipam:prefix_list' %}">Prefixes</a></li> | 
					
						
							|  |  |  |             {% if prefix.vrf %} | 
					
						
							| 
									
										
										
										
											2016-11-18 09:49:04 -05:00
										 |  |  |                 <li><a href="{% url 'ipam:vrf' pk=prefix.vrf.pk %}">{{ prefix.vrf }}</a></li> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |             {% endif %} | 
					
						
							|  |  |  |             <li>{{ prefix }}</li> | 
					
						
							|  |  |  |         </ol> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2016-12-09 16:23:11 -05:00
										 |  |  |     <div class="col-sm-4 col-md-3"> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |         <form action="{% url 'ipam:prefix_list' %}" method="get"> | 
					
						
							|  |  |  |             <div class="input-group"> | 
					
						
							| 
									
										
										
										
											2016-07-29 12:51:23 -04:00
										 |  |  |                 <input type="text" name="q" class="form-control" placeholder="Search prefixes" /> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                 <span class="input-group-btn"> | 
					
						
							|  |  |  |                     <button type="submit" class="btn btn-primary"> | 
					
						
							| 
									
										
										
										
											2016-08-01 13:29:45 -04:00
										 |  |  |                         <span class="fa fa-search" aria-hidden="true"></span> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                     </button> | 
					
						
							|  |  |  |                 </span> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |         </form> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | <div class="pull-right"> | 
					
						
							| 
									
										
										
										
											2016-06-09 16:33:24 -04:00
										 |  |  |     {% if perms.ipam.add_ipaddress %} | 
					
						
							| 
									
										
										
										
											2017-11-22 13:00:48 -05:00
										 |  |  | 		<a href="{% url 'ipam:ipaddress_add' %}?address={{ prefix.get_first_available_ip }}&vrf={{ prefix.vrf.pk }}&tenant_group={{ prefix.tenant.group.pk }}&tenant={{ prefix.tenant.pk }}" class="btn btn-success"> | 
					
						
							| 
									
										
										
										
											2016-08-01 13:29:45 -04:00
										 |  |  | 			<span class="fa fa-plus" aria-hidden="true"></span> | 
					
						
							| 
									
										
										
										
											2016-06-09 16:33:24 -04:00
										 |  |  | 			Add an IP Address | 
					
						
							|  |  |  | 		</a> | 
					
						
							|  |  |  |     {% endif %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |     {% if perms.ipam.change_prefix %} | 
					
						
							|  |  |  | 		<a href="{% url 'ipam:prefix_edit' pk=prefix.pk %}" class="btn btn-warning"> | 
					
						
							| 
									
										
										
										
											2016-08-01 13:29:45 -04:00
										 |  |  | 			<span class="fa fa-pencil" aria-hidden="true"></span> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | 			Edit this prefix | 
					
						
							|  |  |  | 		</a> | 
					
						
							|  |  |  |     {% endif %} | 
					
						
							|  |  |  |     {% if perms.ipam.delete_prefix %} | 
					
						
							|  |  |  | 		<a href="{% url 'ipam:prefix_delete' pk=prefix.pk %}" class="btn btn-danger"> | 
					
						
							| 
									
										
										
										
											2016-08-01 13:29:45 -04:00
										 |  |  | 			<span class="fa fa-trash" aria-hidden="true"></span> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | 			Delete this prefix | 
					
						
							|  |  |  | 		</a> | 
					
						
							|  |  |  |     {% endif %} | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | <h1>{{ prefix }}</h1> | 
					
						
							| 
									
										
										
										
											2016-12-09 16:23:11 -05:00
										 |  |  | {% include 'inc/created_updated.html' with obj=prefix %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | <ul class="nav nav-tabs" style="margin-bottom: 20px"> | 
					
						
							|  |  |  |     <li role="presentation"{% if active_tab == 'prefix' %} class="active"{% endif %}><a href="{% url 'ipam:prefix' pk=prefix.pk %}">Prefix</a></li> | 
					
						
							| 
									
										
										
										
											2017-11-22 12:40:58 -05:00
										 |  |  |     <li role="presentation"{% if active_tab == 'ip-addresses' %} class="active"{% endif %}><a href="{% url 'ipam:prefix_ipaddresses' pk=prefix.pk %}">IP Addresses <span class="badge">{{ prefix.get_child_ips.count }}</span></a></li> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | </ul> |