mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-16 08:23:12 +00:00
43 lines
1.6 KiB
Python
43 lines
1.6 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'),
|
|
),
|
|
]
|