Matteo Scandolo | d5a3cc8 | 2019-02-21 08:30:55 -0800 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # -*- coding: utf-8 -*- |
| 16 | # Generated by Django 1.11.11 on 2019-02-21 16:28 |
| 17 | from __future__ import unicode_literals |
| 18 | |
| 19 | import core.models.xosbase_header |
| 20 | from django.db import migrations, models |
| 21 | import django.db.models.deletion |
| 22 | |
| 23 | |
| 24 | class Migration(migrations.Migration): |
| 25 | |
| 26 | initial = True |
| 27 | |
| 28 | dependencies = [ |
| 29 | ('core', '0002_initial_data'), |
| 30 | ] |
| 31 | |
| 32 | operations = [ |
| 33 | migrations.CreateModel( |
| 34 | name='OpenStackService', |
| 35 | fields=[ |
| 36 | ('service_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Service_decl')), |
| 37 | ('auth_url', core.models.xosbase_header.StrippedCharField(blank=True, help_text=b'Auth url for the OpenStack controller', max_length=200, null=True)), |
| 38 | ('admin_user', core.models.xosbase_header.StrippedCharField(blank=True, help_text=b'Username of an admin user at this OpenStack', max_length=200, null=True)), |
| 39 | ('admin_password', core.models.xosbase_header.StrippedCharField(blank=True, help_text=b'Password of theadmin user at this OpenStack', max_length=200, null=True)), |
| 40 | ('admin_tenant', core.models.xosbase_header.StrippedCharField(blank=True, help_text=b'Name of the tenant the admin user belongs to', max_length=200, null=True)), |
| 41 | ], |
| 42 | options={ |
| 43 | 'verbose_name': 'OpenStack Service', |
| 44 | }, |
| 45 | bases=('core.service',), |
| 46 | ), |
| 47 | migrations.CreateModel( |
| 48 | name='OpenStackServiceInstance', |
| 49 | fields=[ |
| 50 | ('computeserviceinstance_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.ComputeServiceInstance_decl')), |
| 51 | ('admin_password', core.models.xosbase_header.StrippedCharField(blank=True, help_text=b'Admin password for instance', max_length=200, null=True)), |
| 52 | ('flavor', models.ForeignKey(blank=True, help_text=b'Flavor of this instance', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='openstackinstance', to='core.Flavor')), |
| 53 | ('node', models.ForeignKey(blank=True, help_text=b'Node on which to deploy this instance', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='openstackinstances', to='core.Node')), |
| 54 | ], |
| 55 | options={ |
| 56 | 'verbose_name': 'OpenStack Service Instance', |
| 57 | }, |
| 58 | bases=('core.computeserviceinstance',), |
| 59 | ), |
| 60 | ] |