mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			716 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			716 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <tr>
 | |
|     <td>
 | |
|         <a href="{% url 'ipam:ipaddress' pk=ip.pk %}">{{ ip }}</a>
 | |
|     </td>
 | |
|     <td>
 | |
|         {{ ip.vrf|default:"Global" }}
 | |
|     </td>
 | |
|     <td>{{ ip.interface }}</td>
 | |
|     <td>
 | |
|         {% if device.primary_ip4 == ip or device.primary_ip6 == ip %}
 | |
|             <span class="label label-success">Primary</span>
 | |
|         {% endif %}
 | |
|     </td>
 | |
|     <td class="text-right">
 | |
|         {% if perms.ipam.delete_ipaddress %}
 | |
|             <a href="{% url 'ipam:ipaddress_delete' pk=ip.pk %}?return_url={{ device.get_absolute_url }}" class="btn btn-danger btn-xs">
 | |
|                 <i class="glyphicon glyphicon-trash" aria-hidden="true" title="Delete IP address"></i>
 | |
|             </a>
 | |
|         {% endif %}
 | |
|     </td>
 | |
| </tr>
 |