blob: a3c48081408628edf2bb8566a91eb8d68d720be8 [file] [log] [blame]
Daniele Moro134b8d62020-01-14 11:32:05 -08001# 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.27 on 2020-01-14 19:25
17from __future__ import unicode_literals
18
19import core.models.xosbase_header
20from django.db import migrations, models
21import django.db.models.deletion
22import django.utils.timezone
23
24
25class Migration(migrations.Migration):
26
27 initial = True
28
29 dependencies = [
30 ('core', '0012_backupoperation_decl_uuid'),
31 ]
32
33 operations = [
34 migrations.CreateModel(
35 name='DtWorkflowDriverService',
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': 'DtWorkflowDriver Service',
41 },
42 bases=('core.service',),
43 ),
44 migrations.CreateModel(
45 name='DtWorkflowDriverServiceInstance',
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 ('serial_number', models.CharField(help_text=b'Serial number of ONU', max_length=256, unique=True)),
49 ('authentication_state', models.CharField(choices=[(b'AWAITING', b'Awaiting'), (b'STARTED', b'Started'), (b'APPROVED', b'Approved'), (b'DENIED', b'Denied')], default=b'AWAITING', help_text=b'Subscriber authentication state', max_length=50)),
50 ('of_dpid', models.CharField(help_text=b'OLT Openflow ID', max_length=256)),
51 ('uni_port_id', models.IntegerField(help_text=b'ONU UNI port ID')),
52 ('admin_onu_state', models.CharField(choices=[(b'AWAITING', b'Awaiting'), (b'ENABLED', b'Enabled'), (b'DISABLED', b'Disabled')], default=b'AWAITING', help_text=b'ONU administrative state', max_length=256)),
53 ('status_message', models.CharField(blank=True, default=b'', help_text=b'Status text of current state machine state', max_length=256, null=True)),
54 ('pppoe_state', models.CharField(choices=[(b'AWAITING', b'Awaiting'), (b'INITIATED', b'Initiated'), (b'CONNECTED', b'Connected'), (b'DISCONNECTED', b'Disconnected')], default=b'AWAITING', help_text=b'State of the subscriber PPPoE session', max_length=256)),
55 ('pppoe_session_id', models.CharField(blank=True, help_text=b'Subscriber PPPoE session ID', max_length=20, null=True)),
56 ('ipcp_state', models.CharField(choices=[(b'AWAITING', b'Awaiting'), (b'CONF_ACK', b'Ack'), (b'CONF_REQUEST', b'Requested')], default=b'AWAITING', help_text=b'State of the IPCP protocol for IP address assignment', max_length=256)),
57 ('ip_address', models.CharField(blank=True, help_text=b'Subscriber IP address, learned from IPCP', max_length=20, null=True)),
58 ('mac_address', models.CharField(blank=True, help_text=b'Subscriber MAC address', max_length=20, null=True)),
59 ('oper_onu_status', models.CharField(choices=[(b'AWAITING', b'Awaiting'), (b'ENABLED', b'Enabled'), (b'DISABLED', b'Disabled')], default=b'AWAITING', help_text=b'ONU operational state', max_length=256)),
60 ],
61 options={
62 'verbose_name': 'DtWorkflowDriver Service Instance',
63 },
64 bases=('core.serviceinstance',),
65 ),
66 migrations.CreateModel(
67 name='DtWorkflowDriverWhiteListEntry',
68 fields=[
69 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
70 ('created', models.DateTimeField(auto_now_add=True, help_text=b'Time this model was created')),
71 ('updated', models.DateTimeField(default=django.utils.timezone.now, help_text=b'Time this model was changed by a non-synchronizer')),
72 ('enacted', models.DateTimeField(blank=True, default=None, help_text=b'When synced, set to the timestamp of the data that was synced', null=True)),
73 ('policed', models.DateTimeField(blank=True, default=None, help_text=b'When policed, set to the timestamp of the data that was policed', null=True)),
74 ('backend_register', models.CharField(blank=True, default=b'{}', max_length=1024, null=True)),
75 ('backend_need_delete', models.BooleanField(default=False)),
76 ('backend_need_reap', models.BooleanField(default=False)),
77 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=1024)),
78 ('backend_code', models.IntegerField(default=0)),
79 ('deleted', models.BooleanField(default=False)),
80 ('write_protect', models.BooleanField(default=False)),
81 ('lazy_blocked', models.BooleanField(default=False)),
82 ('no_sync', models.BooleanField(default=False)),
83 ('no_policy', models.BooleanField(default=False)),
84 ('policy_status', models.CharField(blank=True, default=b'Policy in process', max_length=1024, null=True)),
85 ('policy_code', models.IntegerField(blank=True, default=0, null=True)),
86 ('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)),
87 ('backend_need_delete_policy', models.BooleanField(default=False, help_text=b'True if delete model_policy must be run before object can be reaped')),
88 ('xos_managed', models.BooleanField(default=True, help_text=b'True if xos is responsible for creating/deleting this object')),
89 ('backend_handle', models.CharField(blank=True, help_text=b'Handle used by the backend to track this object', max_length=1024, null=True)),
90 ('changed_by_step', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a sync step', null=True)),
91 ('changed_by_policy', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a model policy', null=True)),
92 ('serial_number', models.CharField(help_text=b'ONU Serial Number', max_length=256)),
93 ('pon_port_id', models.IntegerField(help_text=b'PON Port on which this ONU is expected to show up')),
94 ('device_id', models.CharField(help_text=b'OLT Device (logical device id) on which this ONU is expected to show up', max_length=54)),
95 ('owner', models.ForeignKey(help_text=b'DtWorkflowDriverService that owns this white list entry', on_delete=django.db.models.deletion.CASCADE, related_name='whitelist_entries', to='dt-workflow-driver.DtWorkflowDriverService')),
96 ],
97 options={
98 'verbose_name': 'ONU Whitelist',
99 },
100 bases=(models.Model, core.models.xosbase_header.PlModelMixIn),
101 ),
102 migrations.AlterUniqueTogether(
103 name='dtworkflowdriverwhitelistentry',
104 unique_together=set([('owner', 'serial_number')]),
105 ),
106 ]