Hardik Windlass | da0d6c4 | 2019-05-13 16:00:01 +0000 | [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.20 on 2019-05-13 11:46 |
| 17 | from __future__ import unicode_literals |
| 18 | |
| 19 | import core.models.xosbase_header |
| 20 | import django.core.validators |
| 21 | from django.db import migrations, models |
| 22 | import django.utils.timezone |
| 23 | |
| 24 | |
| 25 | class Migration(migrations.Migration): |
| 26 | |
| 27 | dependencies = [ |
| 28 | ('volt', '0005_auto_20190410_0026'), |
| 29 | ] |
| 30 | |
| 31 | operations = [ |
| 32 | migrations.CreateModel( |
| 33 | name='TechnologyProfile_decl', |
| 34 | fields=[ |
| 35 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 36 | ('created', models.DateTimeField(auto_now_add=True, help_text=b'Time this model was created')), |
| 37 | ('updated', models.DateTimeField(default=django.utils.timezone.now, help_text=b'Time this model was changed by a non-synchronizer')), |
| 38 | ('enacted', models.DateTimeField(blank=True, default=None, help_text=b'When synced, set to the timestamp of the data that was synced', null=True)), |
| 39 | ('policed', models.DateTimeField(blank=True, default=None, help_text=b'When policed, set to the timestamp of the data that was policed', null=True)), |
| 40 | ('backend_register', models.CharField(blank=True, default=b'{}', max_length=1024, null=True)), |
| 41 | ('backend_need_delete', models.BooleanField(default=False)), |
| 42 | ('backend_need_reap', models.BooleanField(default=False)), |
| 43 | ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=1024)), |
| 44 | ('backend_code', models.IntegerField(default=0)), |
| 45 | ('deleted', models.BooleanField(default=False)), |
| 46 | ('write_protect', models.BooleanField(default=False)), |
| 47 | ('lazy_blocked', models.BooleanField(default=False)), |
| 48 | ('no_sync', models.BooleanField(default=False)), |
| 49 | ('no_policy', models.BooleanField(default=False)), |
| 50 | ('policy_status', models.CharField(blank=True, default=b'Policy in process', max_length=1024, null=True)), |
| 51 | ('policy_code', models.IntegerField(blank=True, default=0, null=True)), |
| 52 | ('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)), |
| 53 | ('backend_need_delete_policy', models.BooleanField(default=False, help_text=b'True if delete model_policy must be run before object can be reaped')), |
| 54 | ('xos_managed', models.BooleanField(default=True, help_text=b'True if xos is responsible for creating/deleting this object')), |
| 55 | ('backend_handle', models.CharField(blank=True, help_text=b'Handle used by the backend to track this object', max_length=1024, null=True)), |
| 56 | ('changed_by_step', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a sync step', null=True)), |
| 57 | ('changed_by_policy', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a model policy', null=True)), |
| 58 | ('technology', models.CharField(db_index=True, help_text=b'The technology being utilized by the adaptor', max_length=16)), |
| 59 | ('profile_id', models.IntegerField(db_index=True, help_text=b'The numeric id of the profile', validators=[django.core.validators.MaxValueValidator(255), django.core.validators.MinValueValidator(64)])), |
| 60 | ('profile_value', models.CharField(help_text=b'The technology profile value in JSON format', max_length=4096)), |
| 61 | ], |
| 62 | options={ |
| 63 | 'verbose_name': 'Technology Profile', |
| 64 | }, |
| 65 | bases=(models.Model, core.models.xosbase_header.PlModelMixIn), |
| 66 | ), |
| 67 | migrations.CreateModel( |
| 68 | name='TechnologyProfile', |
| 69 | fields=[ |
| 70 | ], |
| 71 | options={ |
| 72 | 'proxy': True, |
| 73 | 'indexes': [], |
| 74 | }, |
| 75 | bases=('volt.technologyprofile_decl',), |
| 76 | ), |
| 77 | ] |