2015-03-06 11:59:27 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
2020-10-15 14:18:45 +00:00
|
|
|
|
2015-03-06 11:59:27 +00:00
|
|
|
{% block title %}{% trans "Interface" %} - {{ iface }}{% endblock %}
|
2020-10-15 14:18:45 +00:00
|
|
|
|
|
|
|
{% block page_heading %}{% trans "Interface" %}: {{ iface }}{% endblock page_heading %}
|
|
|
|
|
2015-03-06 11:59:27 +00:00
|
|
|
{% block content %}
|
2019-07-31 08:03:48 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
2020-05-19 16:53:54 +00:00
|
|
|
<ol class="breadcrumb bg-light shadow-sm">
|
|
|
|
<li class="breadcrumb-item active">
|
|
|
|
<a href="{% url 'overview' compute.id %}"><i class="fa fa-dashboard"></i> {% trans "Overview" %}</a>
|
2019-07-31 08:03:48 +00:00
|
|
|
</li>
|
2020-05-19 16:53:54 +00:00
|
|
|
<li class="breadcrumb-item">
|
|
|
|
<a href="{% url 'instances' compute.id %}"><i class="fa fa-server"></i> {% trans "Instances" %}</a>
|
2019-07-31 08:03:48 +00:00
|
|
|
</li>
|
2020-05-19 16:53:54 +00:00
|
|
|
<li class="breadcrumb-item">
|
|
|
|
<a href="{% url 'storages' compute.id %}"> <i class="fa fa-hdd-o"></i> {% trans "Storages" %}</a>
|
2019-07-31 08:03:48 +00:00
|
|
|
</li>
|
2020-05-19 16:53:54 +00:00
|
|
|
<li class="breadcrumb-item">
|
|
|
|
<a href="{% url 'networks' compute.id %}"><i class="fa fa-sitemap"></i> {% trans "Networks" %}</a>
|
2019-07-31 08:03:48 +00:00
|
|
|
</li>
|
2020-05-19 16:53:54 +00:00
|
|
|
<li class="breadcrumb-item">
|
|
|
|
<a href="{% url 'interfaces' compute.id %}"><i class="fa fa-wifi"></i> {% trans "Interfaces" %}</a>
|
2019-07-31 08:03:48 +00:00
|
|
|
</li>
|
2020-05-19 16:53:54 +00:00
|
|
|
<li class="breadcrumb-item">
|
|
|
|
<a href="{% url 'nwfilters' compute.id %}"> <i class="fa fa-filter"></i> {% trans "NWFilters" %}</a>
|
2019-07-31 08:03:48 +00:00
|
|
|
</li>
|
2020-05-19 16:53:54 +00:00
|
|
|
<li class="breadcrumb-item">
|
2021-06-15 11:17:55 +00:00
|
|
|
<a href="{% url 'virtsecrets' compute.id %}"><i class="fa fa-key"></i> {% trans "Secrets" %}</a>
|
2019-07-31 08:03:48 +00:00
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-06 11:59:27 +00:00
|
|
|
|
2019-07-31 08:03:48 +00:00
|
|
|
<div class="row">
|
2020-05-19 16:53:54 +00:00
|
|
|
<dl class="ml-3 row">
|
|
|
|
<dt class="col-4">{% trans "Interface" %}</dt>
|
|
|
|
<dd class="col-8"><strong>{{ iface }}</strong></dd>
|
2020-06-04 12:40:57 +00:00
|
|
|
<dt class="col-4">{% trans "IPv4" %} ({% if ipv4 == None %}{% trans 'None' %}{% else %}{{ ipv4_type }}{% endif %})</dt>
|
2020-05-19 16:53:54 +00:00
|
|
|
<dd class="col-8">{{ ipv4 }}</dd>
|
2020-06-04 12:40:57 +00:00
|
|
|
<dt class="col-4">{% trans "IPv6" %} ({% if ipv6 == None %}{% trans 'None' %}{% else %}{{ ipv6_type }}{% endif %})</dt>
|
2020-05-19 16:53:54 +00:00
|
|
|
<dd class="col-8">{{ ipv6 }}</dd>
|
|
|
|
<dt class="col-4">{% trans "MAC" %}</dt>
|
|
|
|
<dd class="col-8">{{ mac }}</dd>
|
|
|
|
<dt class="col-4">{% trans "Interface Type" %}</dt>
|
|
|
|
<dd class="col-8">{{ itype }}</dd>
|
2020-06-04 12:40:57 +00:00
|
|
|
{% if itype == 'bridge' %}
|
2020-05-19 16:53:54 +00:00
|
|
|
<dt class="col-4">{% trans "Bridge Device" %}</dt>
|
|
|
|
<dd class="col-8">{{ bridge }}</dd>
|
2020-06-04 12:40:57 +00:00
|
|
|
{% endif %}
|
2020-05-19 16:53:54 +00:00
|
|
|
<dt class="col-4">{% trans "Boot Mode" %}</dt>
|
|
|
|
<dd class="col-8">{{ start_mode }}</dd>
|
|
|
|
<dt class="col-4">{% trans "State" %}</dt>
|
|
|
|
<dd class="col-8">
|
2020-05-26 13:18:38 +00:00
|
|
|
<form action="" method="post" role="form" aria-label="Interface start/stop/delete form">{% csrf_token %}
|
2020-06-04 12:40:57 +00:00
|
|
|
{% if state == 0 %}
|
2020-05-19 16:53:54 +00:00
|
|
|
<input type="submit" class="btn btn-sm btn-primary" name="start" value="{% trans "Start" %}">
|
|
|
|
<input type="submit" class="btn btn-sm btn-danger" name="delete" value="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
|
2019-07-31 08:03:48 +00:00
|
|
|
{% else %}
|
2020-05-19 16:53:54 +00:00
|
|
|
<input type="submit" class="btn btn-sm btn-secondary" name="stop" value="{% trans "Stop" %}" onclick="return confirm('{% trans "Are you sure?" %}')">
|
2020-06-04 12:40:57 +00:00
|
|
|
{% endif %}
|
2019-07-31 08:03:48 +00:00
|
|
|
</form>
|
2020-05-19 16:53:54 +00:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
2019-11-04 09:03:13 +00:00
|
|
|
<div class="col-sm-12">
|
2020-05-19 16:53:54 +00:00
|
|
|
<h5>{% trans 'Slaves' %}</h5>
|
2020-06-04 12:40:57 +00:00
|
|
|
{% if itype == 'bridge' %}
|
2019-11-04 09:03:13 +00:00
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead>
|
2020-05-19 16:53:54 +00:00
|
|
|
<tr>
|
|
|
|
<th scope="col">{% trans 'MAC' %}</th>
|
|
|
|
<th scope="col">{% trans 'Name' %}</th>
|
|
|
|
<th scope="col">{% trans 'Type' %}</th>
|
|
|
|
<th scope="col">{% trans 'Speed' %}</th>
|
|
|
|
<th scope="col">{% trans 'State' %}</th>
|
2019-11-04 09:03:13 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for iface in slave_ifaces %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ iface.mac }}</td>
|
|
|
|
<td>{{ iface.name }}</td>
|
|
|
|
<td>{{ iface.type }}</td>
|
|
|
|
<td>{{ iface.speed }}</td>
|
|
|
|
<td>{{ iface.state }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-06-04 12:40:57 +00:00
|
|
|
{% endif %}
|
2019-11-04 09:03:13 +00:00
|
|
|
</div>
|
2019-07-31 08:03:48 +00:00
|
|
|
</div>
|
2019-11-04 09:03:13 +00:00
|
|
|
|
2015-03-06 11:59:27 +00:00
|
|
|
{% endblock %}
|