blob: e3ee1d591a9b14c92aa8bdf250c91045ec9d3a71 [file] [log] [blame]
Matteo Scandoloa4a279a2019-03-14 15:56:22 -07001# 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-03-15 20: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 dependencies = [
28 ('rcord', '0003_auto_20190308_1437'),
29 ]
30
31 operations = [
32 migrations.CreateModel(
33 name='BandwidthProfile_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 ('name', models.TextField()),
59 ('cir', models.IntegerField()),
60 ('cbs', models.IntegerField()),
61 ('eir', models.IntegerField()),
62 ('ebs', models.IntegerField()),
63 ('air', models.IntegerField()),
64 ],
65 options={
66 'verbose_name': 'Bandwidth Profile',
67 },
68 bases=(models.Model, core.models.xosbase_header.PlModelMixIn),
69 ),
70 migrations.CreateModel(
71 name='BandwidthProfile',
72 fields=[
73 ],
74 options={
75 'proxy': True,
76 'indexes': [],
77 },
78 bases=('rcord.bandwidthprofile_decl',),
79 ),
80 migrations.AddField(
81 model_name='rcordsubscriber_decl',
82 name='downstream_bps',
83 field=models.ForeignKey(blank=True, help_text=b'The subscriber the IP address belongs to', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ds_subscriber', to='rcord.BandwidthProfile_decl'),
84 ),
85 migrations.AddField(
86 model_name='rcordsubscriber_decl',
87 name='upstream_bps',
88 field=models.ForeignKey(blank=True, help_text=b'The subscriber the IP address belongs to', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='us_subscriber', to='rcord.BandwidthProfile_decl'),
89 ),
90 ]