mirror of https://gitlab.federez.net/re2o/re2o
13 changed files with 316 additions and 18 deletions
@ -0,0 +1,34 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.10.7 on 2017-10-19 22:40 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
import machines.models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('machines', '0062_extension_origin_v6'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.CreateModel( |
||||
|
name='SOA', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
|
('name', models.CharField(max_length=255)), |
||||
|
('mail', models.EmailField(help_text='Email du contact pour la zone', max_length=254)), |
||||
|
('refresh', models.PositiveIntegerField(default=86400, help_text='Secondes avant que les DNS secondaires doivent demander le serial du DNS primaire pour détecter une modification')), |
||||
|
('retry', models.PositiveIntegerField(default=7200, help_text='Secondes avant que les DNS secondaires fassent une nouvelle demande de serial en cas de timeout du DNS primaire')), |
||||
|
('expire', models.PositiveIntegerField(default=3600000, help_text='Secondes après lesquelles les DNS secondaires arrêtent de de répondre aux requêtes en cas de timeout du DNS primaire')), |
||||
|
('ttl', models.PositiveIntegerField(default=172800, help_text='Time To Live')), |
||||
|
], |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='extension', |
||||
|
name='soa', |
||||
|
field=models.ForeignKey(default=machines.models.SOA.new_default_soa, on_delete=django.db.models.deletion.CASCADE, to='machines.SOA'), |
||||
|
), |
||||
|
] |
||||
@ -0,0 +1,56 @@ |
|||||
|
{% 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 © 2017 Gabriel Détraz |
||||
|
Copyright © 2017 Goulven Kermarec |
||||
|
Copyright © 2017 Augustin Lemesle |
||||
|
|
||||
|
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 %} |
||||
|
|
||||
|
<table class="table table-striped"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Nom</th> |
||||
|
<th>Mail</th> |
||||
|
<th>Refresh</th> |
||||
|
<th>Retry</th> |
||||
|
<th>Expire</th> |
||||
|
<th>TTL</th> |
||||
|
<th></th> |
||||
|
<th></th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
{% for soa in soa_list %} |
||||
|
<tr> |
||||
|
<td>{{ soa.name }}</td> |
||||
|
<td>{{ soa.mail }}</td> |
||||
|
<td>{{ soa.refresh }}</td> |
||||
|
<td>{{ soa.retry }}</td> |
||||
|
<td>{{ soa.expire }}</td> |
||||
|
<td>{{ soa.ttl }}</td> |
||||
|
<td class="text-right"> |
||||
|
{% if is_infra %} |
||||
|
{% include 'buttons/edit.html' with href='machines:edit-soa' id=soa.id %} |
||||
|
{% endif %} |
||||
|
{% include 'buttons/history.html' with href='machines:history' name='soa' id=soa.id %} |
||||
|
</td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</table> |
||||
|
|
||||
|
|
||||
Loading…
Reference in new issue