aboutsummaryrefslogtreecommitdiffstats
path: root/src/resource_inventory/migrations/0009_auto_20190315_1757.py
blob: 92ed0e99fbf851d03237f7d9f456445b0b83e3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Generated by Django 2.1 on 2019-03-15 17:57

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('resource_inventory', '0008_host_remote_management'),
    ]

    operations = [
        migrations.CreateModel(
            name='NetworkConnection',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('vlan_is_tagged', models.BooleanField()),
            ],
        ),
        migrations.CreateModel(
            name='NetworkRole',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
            ],
        ),
        migrations.RemoveField(
            model_name='genericinterface',
            name='vlans',
        ),
        migrations.RemoveField(
            model_name='network',
            name='vlan_id',
        ),
        migrations.AddField(
            model_name='network',
            name='bundle',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='networks', to='resource_inventory.GenericResourceBundle'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='network',
            name='is_public',
            field=models.BooleanField(default=False),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='vlan',
            name='network',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='resource_inventory.Network'),
        ),
        migrations.AddField(
            model_name='networkrole',
            name='network',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.Network'),
        ),
        migrations.AddField(
            model_name='networkconnection',
            name='network',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.Network'),
        ),
        migrations.AddField(
            model_name='genericinterface',
            name='connections',
            field=models.ManyToManyField(to='resource_inventory.NetworkConnection'),
        ),
        migrations.AddField(
            model_name='opnfvconfig',
            name='networks',
            field=models.ManyToManyField(to='resource_inventory.NetworkRole'),
        ),
    ]