8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-09 19:36:27 +00:00
re2o/machines/migrations/0058_auto_20171002_0350.py
Hugo Levy-Falk c4a104b3b6 I like my black.
Just ran black on the whoe repository. Fix #210.
2019-11-04 22:47:24 +01:00

75 lines
2.3 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-10-02 01:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("machines", "0057_nas_autocapture_mac")]
operations = [
migrations.CreateModel(
name="OuverturePort",
fields=[
(
"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
),
),
],
),
migrations.CreateModel(
name="OuverturePortList",
fields=[
(
"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
),
),
],
),
migrations.AddField(
model_name="ouvertureport",
name="port_list",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="machines.OuverturePortList",
),
),
migrations.AddField(
model_name="interface",
name="port_lists",
field=models.ManyToManyField(blank=True, to="machines.OuverturePortList"),
),
]