1 ##############################################################################
2 # Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 # Generated by Django 2.1 on 2018-09-14 14:48
12 from django.conf import settings
13 from django.db import migrations, models
14 import django.db.models.deletion
17 class Migration(migrations.Migration):
22 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
23 ('booking', '__first__'),
24 ('resource_inventory', '__first__'),
28 migrations.CreateModel(
29 name='AccessRelation',
31 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
32 ('status', models.IntegerField(default=0)),
33 ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
34 ('lab_token', models.CharField(default='null', max_length=50)),
35 ('message', models.TextField(default='')),
41 migrations.CreateModel(
42 name='HostHardwareRelation',
44 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
45 ('status', models.IntegerField(default=0)),
46 ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
47 ('lab_token', models.CharField(default='null', max_length=50)),
48 ('message', models.TextField(default='')),
49 ('host', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.Host')),
55 migrations.CreateModel(
56 name='HostNetworkRelation',
58 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
59 ('status', models.IntegerField(default=0)),
60 ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
61 ('lab_token', models.CharField(default='null', max_length=50)),
62 ('message', models.TextField(default='')),
63 ('host', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.Host')),
69 migrations.CreateModel(
72 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
73 ('status', models.IntegerField(default=0)),
74 ('delta', models.TextField()),
75 ('complete', models.BooleanField(default=False)),
76 ('booking', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='booking.Booking')),
79 migrations.CreateModel(
80 name='OpnfvApiConfig',
82 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
83 ('installer', models.CharField(max_length=100)),
84 ('scenario', models.CharField(max_length=100)),
85 ('delta', models.TextField()),
86 ('roles', models.ManyToManyField(to='resource_inventory.Host')),
89 migrations.CreateModel(
90 name='SoftwareRelation',
92 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
93 ('status', models.IntegerField(default=0)),
94 ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)),
95 ('lab_token', models.CharField(default='null', max_length=50)),
96 ('message', models.TextField(default='')),
97 ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job')),
103 migrations.CreateModel(
106 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
109 migrations.CreateModel(
112 ('taskconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')),
113 ('access_type', models.CharField(max_length=50)),
114 ('revoke', models.BooleanField(default=False)),
115 ('context', models.TextField(default='')),
116 ('delta', models.TextField()),
117 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
119 bases=('api.taskconfig',),
121 migrations.CreateModel(
122 name='HardwareConfig',
124 ('taskconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')),
125 ('image', models.CharField(default='defimage', max_length=100)),
126 ('power', models.CharField(default='off', max_length=100)),
127 ('hostname', models.CharField(default='hostname', max_length=100)),
128 ('ipmi_create', models.BooleanField(default=False)),
129 ('delta', models.TextField()),
131 bases=('api.taskconfig',),
133 migrations.CreateModel(
134 name='NetworkConfig',
136 ('taskconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')),
137 ('delta', models.TextField()),
138 ('interfaces', models.ManyToManyField(to='resource_inventory.Interface')),
140 bases=('api.taskconfig',),
142 migrations.CreateModel(
143 name='SoftwareConfig',
145 ('taskconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')),
146 ('opnfv', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.OpnfvApiConfig')),
148 bases=('api.taskconfig',),
151 model_name='hostnetworkrelation',
153 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job'),
156 model_name='hosthardwarerelation',
158 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job'),
161 model_name='accessrelation',
163 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job'),
166 model_name='softwarerelation',
168 field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.SoftwareConfig'),
171 model_name='hostnetworkrelation',
173 field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.NetworkConfig'),
176 model_name='hosthardwarerelation',
178 field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.HardwareConfig'),
181 model_name='accessrelation',
183 field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.AccessConfig'),