2021-03-02 15:58:33 -05:00
|
|
|
{% extends 'generic/object.html' %}
|
2020-06-23 15:09:32 -04:00
|
|
|
{% load helpers %}
|
2020-11-09 14:19:22 -05:00
|
|
|
{% load plugins %}
|
2021-03-08 17:16:07 -05:00
|
|
|
{% load render_table from django_tables2 %}
|
2020-06-23 15:09:32 -04:00
|
|
|
|
2021-03-02 15:58:33 -05:00
|
|
|
{% block breadcrumbs %}
|
2021-07-20 12:14:01 -04:00
|
|
|
{{ block.super }}
|
|
|
|
<li class="breadcrumb-item"><a href="{% url 'virtualization:vminterface_list' %}?virtual_machine_id={{ object.virtual_machine.pk }}">{{ object.virtual_machine }}</a></li>
|
2020-06-23 15:09:32 -04:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="row mb-3">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Interface
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Virtual Machine</th>
|
|
|
|
<td>
|
|
|
|
<a href="{{ object.virtual_machine.get_absolute_url }}">{{ object.virtual_machine }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Name</th>
|
|
|
|
<td>{{ object.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Enabled</th>
|
|
|
|
<td>
|
|
|
|
{% if object.enabled %}
|
|
|
|
<span class="text-success"><i class="mdi mdi-check-bold"></i></span>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-danger"><i class="mdi mdi-close"></i></span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Parent</th>
|
|
|
|
<td>
|
|
|
|
{% if object.parent %}
|
|
|
|
<a href="{{ object.parent.get_absolute_url }}">{{ object.parent }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2021-10-21 16:30:18 -04:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Bridge</th>
|
|
|
|
<td>
|
|
|
|
{% if object.bridge %}
|
|
|
|
<a href="{{ object.bridge.get_absolute_url }}">{{ object.bridge }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2021-04-18 00:22:52 -07:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Description</th>
|
|
|
|
<td>{{ object.description|placeholder }} </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">MTU</th>
|
|
|
|
<td>{{ object.mtu|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">MAC Address</th>
|
|
|
|
<td><span class="text-monospace">{{ object.mac_address|placeholder }}</span></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">802.1Q Mode</th>
|
2021-07-21 11:20:35 -04:00
|
|
|
<td>{{ object.get_mode_display|placeholder }}</td>
|
2021-04-18 00:22:52 -07:00
|
|
|
</tr>
|
|
|
|
</table>
|
2020-06-23 15:09:32 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-02 09:05:56 -04:00
|
|
|
{% include 'inc/panels/tags.html' %}
|
2021-03-10 13:49:10 -05:00
|
|
|
{% plugin_left_page object %}
|
2020-06-23 15:09:32 -04:00
|
|
|
</div>
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-10-19 14:21:31 -04:00
|
|
|
{% include 'inc/panels/custom_fields.html' %}
|
2021-11-02 09:05:56 -04:00
|
|
|
{% include 'ipam/inc/panels/fhrp_groups.html' %}
|
2021-10-21 11:23:31 -04:00
|
|
|
{% plugin_right_page object %}
|
2020-06-23 15:09:32 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="row mb-3">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-12">
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
IP Addresses
|
|
|
|
</h5>
|
2021-12-13 15:36:51 -05:00
|
|
|
<div class="card-body table-responsive">
|
2021-04-18 00:22:52 -07:00
|
|
|
{% if ipaddress_table.rows %}
|
|
|
|
{% render_table ipaddress_table 'inc/table.html' %}
|
|
|
|
{% else %}
|
|
|
|
<div class="text-muted">None</div>
|
|
|
|
{% endif %}
|
2021-03-08 17:16:07 -05:00
|
|
|
</div>
|
|
|
|
{% if perms.ipam.add_ipaddress %}
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="card-footer text-end noprint">
|
2021-11-02 15:10:02 -04:00
|
|
|
<a href="{% url 'ipam:ipaddress_add' %}?virtual_machine={{ object.virtual_machine.pk }}&vminterface={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-primary">
|
2021-03-08 17:16:07 -05:00
|
|
|
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add IP Address
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-06-23 15:09:32 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="row mb-3">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-12">
|
2021-05-17 16:27:27 -04:00
|
|
|
{% include 'inc/panel_table.html' with table=vlan_table heading="VLANs" %}
|
2020-06-23 15:09:32 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="row mb-3">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-12">
|
2021-05-17 16:27:27 -04:00
|
|
|
{% include 'inc/panel_table.html' with table=child_interfaces_table heading="Child Interfaces" %}
|
2020-11-09 14:19:22 -05:00
|
|
|
</div>
|
2021-04-09 10:53:05 -04:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-12">
|
2021-04-09 10:53:05 -04:00
|
|
|
{% plugin_full_width_page object %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-23 15:09:32 -04:00
|
|
|
{% endblock %}
|