2018-06-30 22:17:24 +00:00
|
|
|
{% comment %}
|
|
|
|
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
|
|
|
|
se veut agnostique au réseau considéré, de manière à être installable en
|
|
|
|
quelques clics.
|
|
|
|
|
|
|
|
Copyright © 2018 Gabriel Détraz
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
{% endcomment %}
|
|
|
|
|
2018-05-26 22:36:25 +00:00
|
|
|
{% load acl %}
|
|
|
|
{% load i18n %}
|
2018-08-02 18:47:05 +00:00
|
|
|
{% load logs_extra %}
|
2018-05-26 22:36:25 +00:00
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
|
2018-08-02 18:47:05 +00:00
|
|
|
{% if port_profile_list.paginator %}
|
2019-01-08 23:40:48 +00:00
|
|
|
{% include 'pagination.html' with list=port_profile_list %}
|
2018-08-02 18:47:05 +00:00
|
|
|
{% endif %}
|
2018-05-26 22:36:25 +00:00
|
|
|
|
2018-06-30 22:17:24 +00:00
|
|
|
|
2018-08-02 18:47:05 +00:00
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{% trans "Name" %}</th>
|
2019-11-16 14:14:22 +00:00
|
|
|
<th>{% trans "Default for" %}</th>
|
2018-08-02 18:47:05 +00:00
|
|
|
<th>{% trans "VLANs" %}</th>
|
|
|
|
<th>{% trans "RADIUS settings" %}</th>
|
2018-08-05 16:48:56 +00:00
|
|
|
<th>{% trans "Speed limit" %}</th>
|
|
|
|
<th>{% trans "MAC address limit" %}</th>
|
2018-08-02 18:47:05 +00:00
|
|
|
<th>{% trans "Security" %}</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for port_profile in port_profile_list %}
|
|
|
|
<tr>
|
2018-08-05 16:48:56 +00:00
|
|
|
<td>{{ port_profile.name }}</td>
|
2019-11-16 14:14:22 +00:00
|
|
|
<td>{{ port_profile.profil_default }} {% if port_profile.profil_default%}<b> - {% if port_profile.on_dormitory %}{% blocktrans with dorm=port_profile.on_dormitory %} on {{ dorm }}{% endblocktrans %}{% else %}{% trans "Everywhere" %}{% endif %}</b>{% endif %}</td>
|
2018-08-02 18:47:05 +00:00
|
|
|
<td>
|
|
|
|
{% if port_profile.vlan_untagged %}
|
2018-08-05 16:48:56 +00:00
|
|
|
<b>{% trans "Untagged: " %}</b>{{ port_profile.vlan_untagged }}
|
2018-08-02 18:47:05 +00:00
|
|
|
<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if port_profile.vlan_tagged.all %}
|
2018-08-05 16:48:56 +00:00
|
|
|
<b>{% trans "Tagged: " %}</b>{{ port_profile.vlan_tagged.all|join:", " }}
|
2018-08-02 18:47:05 +00:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-08-05 16:48:56 +00:00
|
|
|
<b>{% trans "RADIUS type: " %}</b>{{ port_profile.radius_type }}
|
2018-08-02 18:47:05 +00:00
|
|
|
{% if port_profile.radius_type == "MAC-radius" %}
|
|
|
|
<br>
|
2018-08-05 16:48:56 +00:00
|
|
|
<b>{% trans "RADIUS mode: " %}</b>{{ port_profile.radius_mode }}</td>
|
2018-08-02 18:47:05 +00:00
|
|
|
{% endif %}
|
2018-08-05 16:48:56 +00:00
|
|
|
<td>{{ port_profile.speed }}</td>
|
|
|
|
<td>{{ port_profile.mac_limit }}</td>
|
|
|
|
<td>{{ port_profile.security_parameters_enabled|join:"<br>" }}</td>
|
2018-08-02 18:47:05 +00:00
|
|
|
<td class="text-right">
|
|
|
|
{% can_edit port_profile %}
|
2019-01-08 23:40:48 +00:00
|
|
|
{% include 'buttons/edit.html' with href='topologie:edit-port-profile' id=port_profile.id %}
|
2018-08-02 18:47:05 +00:00
|
|
|
{% acl_end %}
|
2018-08-05 16:48:56 +00:00
|
|
|
{% history_button port_profile %}
|
2018-08-02 18:47:05 +00:00
|
|
|
{% can_delete port_profile %}
|
2019-01-08 23:40:48 +00:00
|
|
|
{% include 'buttons/suppr.html' with href='topologie:del-port-profile' id=port_profile.id %}
|
2018-08-02 18:47:05 +00:00
|
|
|
{% acl_end %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2018-05-26 22:36:25 +00:00
|
|
|
|
2018-08-02 18:47:05 +00:00
|
|
|
{% if port_profile_list.paginator %}
|
2019-01-08 23:40:48 +00:00
|
|
|
{% include 'pagination.html' with list=port_profile_list %}
|
2018-08-02 18:47:05 +00:00
|
|
|
{% endif %}
|
2018-05-26 22:36:25 +00:00
|
|
|
|
|
|
|
</div>
|
2018-08-05 16:48:56 +00:00
|
|
|
|