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):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('machines', '0057_nas_autocapture_mac'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2017-10-02 02:19:07 +00:00
|
|
|
name='OuverturePort',
|
2017-09-28 15:19:33 +00:00
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('begin', models.IntegerField()),
|
|
|
|
('end', models.IntegerField()),
|
2017-10-02 02:19:07 +00:00
|
|
|
('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(
|
2017-10-02 02:19:07 +00:00
|
|
|
name='OuverturePortList',
|
2017-09-28 15:19:33 +00:00
|
|
|
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(
|
2017-10-02 02:19:07 +00:00
|
|
|
model_name='ouvertureport',
|
2017-09-28 15:19:33 +00:00
|
|
|
name='port_list',
|
2017-10-02 02:19:07 +00:00
|
|
|
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'),
|
2017-09-28 15:19:33 +00:00
|
|
|
),
|
|
|
|
]
|