Matteo Scandolo | ce9ca6d | 2019-02-20 17:34:49 -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 01:31 |
| 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='ONOSApp_decl', |
| 35 | fields=[ |
| 36 | ('serviceinstance_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.ServiceInstance_decl')), |
| 37 | ('app_id', models.TextField()), |
| 38 | ('dependencies', models.TextField(blank=True, help_text=b'Comma separated list of required applications', null=True)), |
| 39 | ('url', models.TextField(blank=True, help_text=b'URL at which the application is available, if it needs to be downloaded', null=True)), |
| 40 | ('version', models.TextField(blank=True, null=True)), |
| 41 | ], |
| 42 | options={ |
| 43 | 'verbose_name': 'ONOS Application', |
| 44 | }, |
| 45 | bases=('core.serviceinstance',), |
| 46 | ), |
| 47 | migrations.CreateModel( |
| 48 | name='ONOSService_decl', |
| 49 | fields=[ |
| 50 | ('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')), |
| 51 | ('rest_hostname', core.models.xosbase_header.StrippedCharField(max_length=255)), |
| 52 | ('rest_port', models.IntegerField(default=8181)), |
| 53 | ('rest_username', core.models.xosbase_header.StrippedCharField(default=b'karaf', max_length=255)), |
| 54 | ('rest_password', core.models.xosbase_header.StrippedCharField(default=b'karaf', max_length=255)), |
| 55 | ], |
| 56 | options={ |
| 57 | 'verbose_name': 'ONOS Service', |
| 58 | }, |
| 59 | bases=('core.service',), |
| 60 | ), |
| 61 | migrations.CreateModel( |
| 62 | name='ONOSApp', |
| 63 | fields=[ |
| 64 | ], |
| 65 | options={ |
| 66 | 'proxy': True, |
| 67 | 'indexes': [], |
| 68 | }, |
| 69 | bases=('onos.onosapp_decl',), |
| 70 | ), |
| 71 | migrations.CreateModel( |
| 72 | name='ONOSService', |
| 73 | fields=[ |
| 74 | ], |
| 75 | options={ |
| 76 | 'proxy': True, |
| 77 | 'indexes': [], |
| 78 | }, |
| 79 | bases=('onos.onosservice_decl',), |
| 80 | ), |
| 81 | ] |