Matteo Scandolo | 37a3c3a | 2019-02-20 17:36:54 -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 | import django.utils.timezone |
| 23 | |
| 24 | |
| 25 | class Migration(migrations.Migration): |
| 26 | |
| 27 | initial = True |
| 28 | |
| 29 | dependencies = [ |
| 30 | ('core', '0002_initial_data'), |
| 31 | ] |
| 32 | |
| 33 | operations = [ |
| 34 | migrations.CreateModel( |
| 35 | name='VRouterService', |
| 36 | fields=[ |
| 37 | ('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')), |
| 38 | ], |
| 39 | options={ |
| 40 | 'verbose_name': 'vRouter Service', |
| 41 | }, |
| 42 | bases=('core.service',), |
| 43 | ), |
| 44 | migrations.CreateModel( |
| 45 | name='VRouterServiceInstance', |
| 46 | fields=[ |
| 47 | ('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')), |
| 48 | ], |
| 49 | options={ |
| 50 | 'verbose_name': 'vRouter Service Instance', |
| 51 | }, |
| 52 | bases=('core.serviceinstance',), |
| 53 | ), |
| 54 | migrations.CreateModel( |
| 55 | name='VRouterStaticRoute', |
| 56 | fields=[ |
| 57 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 58 | ('created', models.DateTimeField(auto_now_add=True, help_text=b'Time this model was created')), |
| 59 | ('updated', models.DateTimeField(default=django.utils.timezone.now, help_text=b'Time this model was changed by a non-synchronizer')), |
| 60 | ('enacted', models.DateTimeField(blank=True, default=None, help_text=b'When synced, set to the timestamp of the data that was synced', null=True)), |
| 61 | ('policed', models.DateTimeField(blank=True, default=None, help_text=b'When policed, set to the timestamp of the data that was policed', null=True)), |
| 62 | ('backend_register', models.CharField(blank=True, default=b'{}', max_length=1024, null=True)), |
| 63 | ('backend_need_delete', models.BooleanField(default=False)), |
| 64 | ('backend_need_reap', models.BooleanField(default=False)), |
| 65 | ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=1024, null=True)), |
| 66 | ('backend_code', models.IntegerField(default=0)), |
| 67 | ('deleted', models.BooleanField(default=False)), |
| 68 | ('write_protect', models.BooleanField(default=False)), |
| 69 | ('lazy_blocked', models.BooleanField(default=False)), |
| 70 | ('no_sync', models.BooleanField(default=False)), |
| 71 | ('no_policy', models.BooleanField(default=False)), |
| 72 | ('policy_status', models.CharField(blank=True, default=b'Policy in process', max_length=1024, null=True)), |
| 73 | ('policy_code', models.IntegerField(blank=True, default=0, null=True)), |
| 74 | ('leaf_model_name', models.CharField(help_text=b'The most specialized model in this chain of inheritance, often defined by a service developer', max_length=1024)), |
| 75 | ('backend_need_delete_policy', models.BooleanField(default=False, help_text=b'True if delete model_policy must be run before object can be reaped')), |
| 76 | ('xos_managed', models.BooleanField(default=True, help_text=b'True if xos is responsible for creating/deleting this object')), |
| 77 | ('backend_handle', models.CharField(blank=True, help_text=b'Handle used by the backend to track this object', max_length=1024, null=True)), |
| 78 | ('changed_by_step', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a sync step', null=True)), |
| 79 | ('changed_by_policy', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a model policy', null=True)), |
| 80 | ('prefix', models.CharField(help_text=b'The destination prefix and netmask (IP/NM)', max_length=52, unique=True)), |
| 81 | ('next_hop', models.CharField(help_text=b'The next-hop for the route', max_length=52)), |
| 82 | ('vrouter', models.ForeignKey(db_index=False, help_text=b'The static route to be configured in ONOS', on_delete=django.db.models.deletion.CASCADE, related_name='static_routes', to='vrouter.VRouterServiceInstance')), |
| 83 | ], |
| 84 | options={ |
| 85 | 'verbose_name': 'vRouter static route', |
| 86 | }, |
| 87 | bases=(models.Model, core.models.xosbase_header.PlModelMixIn), |
| 88 | ), |
| 89 | ] |