11# -*- coding: utf-8 -*-
2- # Generated by Django 1.9.2 on 2016-03-18 10:33
2+ # Generated by Django 1.9.2 on 2016-04-04 07:17
33from __future__ import unicode_literals
44
55from django .conf import settings
@@ -39,10 +39,9 @@ class Migration(migrations.Migration):
3939 ('id' , models .AutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
4040 ('network_id' , models .CharField (max_length = 255 )),
4141 ('network_name' , models .CharField (max_length = 255 )),
42- ('network_cidr' , models .CharField (max_length = 255 )),
4342 ('shared' , models .BooleanField (default = False )),
44- ('subnet' , models .CharField (blank = True , max_length = 255 , null = True )),
4543 ('status' , models .CharField (max_length = 25 )),
44+ ('is_dirty' , models .BooleanField (default = False )),
4645 ('created_on' , models .DateTimeField (auto_now = True )),
4746 ('updated_on' , models .DateTimeField (auto_now_add = True )),
4847 ('creator' , models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .CASCADE , to = settings .AUTH_USER_MODEL )),
@@ -58,6 +57,7 @@ class Migration(migrations.Migration):
5857 ('router_id' , models .CharField (max_length = 255 )),
5958 ('router_name' , models .CharField (max_length = 255 )),
6059 ('status' , models .CharField (max_length = 25 )),
60+ ('is_dirty' , models .BooleanField (default = False )),
6161 ('created_on' , models .DateTimeField (auto_now = True )),
6262 ('updated_on' , models .DateTimeField (auto_now_add = True )),
6363 ('creator' , models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .CASCADE , to = settings .AUTH_USER_MODEL )),
@@ -66,6 +66,25 @@ class Migration(migrations.Migration):
6666 'db_table' : 'cloud_tenant_routers' ,
6767 },
6868 ),
69+ migrations .CreateModel (
70+ name = 'Subnet' ,
71+ fields = [
72+ ('id' , models .AutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
73+ ('subnet_id' , models .CharField (max_length = 255 )),
74+ ('subnet_name' , models .CharField (max_length = 255 )),
75+ ('cidr' , models .CharField (max_length = 255 )),
76+ ('allocation_range_start' , models .GenericIPAddressField (blank = True , null = True )),
77+ ('allocation_range_end' , models .GenericIPAddressField (blank = True , null = True )),
78+ ('selected_allocation_range_start' , models .GenericIPAddressField (blank = True , null = True )),
79+ ('selected_allocation_range_end' , models .GenericIPAddressField (blank = True , null = True )),
80+ ('is_selected' , models .BooleanField (default = False )),
81+ ('is_dirty' , models .BooleanField (default = False )),
82+ ('network' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , related_name = 'subnets' , to = 'cloud.Network' )),
83+ ],
84+ options = {
85+ 'db_table' : 'cloud_tenant_network_subnets' ,
86+ },
87+ ),
6988 migrations .CreateModel (
7089 name = 'Tenant' ,
7190 fields = [
@@ -74,6 +93,7 @@ class Migration(migrations.Migration):
7493 ('tenant_name' , models .CharField (max_length = 256 )),
7594 ('description' , models .CharField (blank = True , max_length = 256 , null = True )),
7695 ('enabled' , models .BooleanField (default = False )),
96+ ('is_dirty' , models .BooleanField (default = False )),
7797 ('created_on' , models .DateTimeField (auto_now = True )),
7898 ('updated_on' , models .DateTimeField (auto_now_add = True )),
7999 ('cloud' , models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .CASCADE , related_name = 'tenants' , to = 'cloud.Cloud' )),
@@ -95,14 +115,16 @@ class Migration(migrations.Migration):
95115 ('remote_pass' , models .CharField (max_length = 100 )),
96116 ('test_method' , models .CharField (max_length = 100 )),
97117 ('iperf_duration' , models .IntegerField ()),
98- ('tenant_type ' , models .CharField (choices = [('all' , 'All' ), ('intra-tenant' , 'Intra Tenant' ), ('inter-tenant' , 'Inter Tenant' ), ('south-north' , 'South to North' ), ('north-south' , 'North to South' )], default = 'all' , max_length = 20 )),
118+ ('test_type ' , models .CharField (choices = [('all' , 'All' ), ('intra-tenant' , 'Intra Tenant' ), ('inter-tenant' , 'Inter Tenant' ), ('south-north' , 'South to North' ), ('north-south' , 'North to South' )], default = 'all' , max_length = 20 )),
99119 ('external_host' , models .CharField (blank = True , max_length = 100 , null = True )),
100120 ('ssh_gateway' , models .CharField (blank = True , max_length = 100 , null = True )),
121+ ('test_environment' , models .CharField (choices = [('dev' , 'Development/Test' ), ('prod' , 'Production' )], default = 'dev' , max_length = 20 )),
101122 ('created_on' , models .DateTimeField (auto_now = True )),
102123 ('updated_on' , models .DateTimeField (auto_now_add = True )),
103124 ('cloud' , models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .CASCADE , related_name = 'cloud_traffic' , to = 'cloud.Cloud' )),
104125 ('creator' , models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .CASCADE , to = settings .AUTH_USER_MODEL )),
105- ('tenants' , models .ManyToManyField (to = 'cloud.Tenant' )),
126+ ('selected_networks' , models .ManyToManyField (blank = True , to = 'cloud.Network' )),
127+ ('tenants' , models .ManyToManyField (blank = True , to = 'cloud.Tenant' )),
106128 ],
107129 options = {
108130 'db_table' : 'cloud_traffic' ,
0 commit comments