2017-09-28 15:19:33 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2017-10-02 02:19:07 +00:00
|
|
|
# Generated by Django 1.10.7 on 2017-10-02 01:50
|
2017-09-28 15:19:33 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2019-11-04 16:55:03 +00:00
|
|
|
dependencies = [("machines", "0057_nas_autocapture_mac")]
|
2017-09-28 15:19:33 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-11-04 16:55:03 +00:00
|
|
|
name="OuverturePort",
|
2017-09-28 15:19:33 +00:00
|
|
|
fields=[
|
2019-11-04 16:55:03 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("begin", models.IntegerField()),
|
|
|
|
("end", models.IntegerField()),
|
|
|
|
(
|
|
|
|
"protocole",
|
|
|
|
models.CharField(
|
|
|
|
choices=[("T", "TCP"), ("U", "UDP")], default="T", max_length=1
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"io",
|
|
|
|
models.CharField(
|
|
|
|
choices=[("I", "IN"), ("O", "OUT")], default="O", max_length=1
|
|
|
|
),
|
|
|
|
),
|
2017-09-28 15:19:33 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2019-11-04 16:55:03 +00:00
|
|
|
name="OuverturePortList",
|
2017-09-28 15:19:33 +00:00
|
|
|
fields=[
|
2019-11-04 16:55:03 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"name",
|
|
|
|
models.CharField(
|
|
|
|
help_text="Nom de la configuration des ports.", max_length=255
|
|
|
|
),
|
|
|
|
),
|
2017-09-28 15:19:33 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-11-04 16:55:03 +00:00
|
|
|
model_name="ouvertureport",
|
|
|
|
name="port_list",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="machines.OuverturePortList",
|
|
|
|
),
|
2017-10-02 02:19:07 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-11-04 16:55:03 +00:00
|
|
|
model_name="interface",
|
|
|
|
name="port_lists",
|
|
|
|
field=models.ManyToManyField(blank=True, to="machines.OuverturePortList"),
|
2017-09-28 15:19:33 +00:00
|
|
|
),
|
|
|
|
]
|