add controllerUrl to network object
diff --git a/planetstack/core/admin.py b/planetstack/core/admin.py
index 592534e..2db0fe2 100644
--- a/planetstack/core/admin.py
+++ b/planetstack/core/admin.py
@@ -1344,7 +1344,7 @@
fieldsets = [
(None, {'fields': ['backend_status_text', 'name','template','ports','labels','owner','guaranteedBandwidth', 'permitAllSlices','permittedSlices','network_id','router_id','subnet_id','subnet'],
'classes':['suit-tab suit-tab-general']}),
- (None, {'fields': ['topologyParameters', 'controllerParameters'],
+ (None, {'fields': ['topologyParameters', 'controllerUrl', 'controllerParameters'],
'classes':['suit-tab suit-tab-sdn']}),
]
diff --git a/planetstack/core/migrations/0005_network_sdn.py b/planetstack/core/migrations/0005_network_sdn.py
index bad6d97..3853c55 100644
--- a/planetstack/core/migrations/0005_network_sdn.py
+++ b/planetstack/core/migrations/0005_network_sdn.py
@@ -35,4 +35,10 @@
field=models.CharField(default=b'BigSwitch', max_length=30, choices=[(b'bigswitch', b'BigSwitch'), (b'physical', b'Physical'), (b'custom', b'Custom')]),
preserve_default=True,
),
+ migrations.AddField(
+ model_name='network',
+ name='controllerUrl',
+ field=models.CharField(max_length=1024, null=True, blank=True),
+ preserve_default=True,
+ ),
]
diff --git a/planetstack/core/models/network.py b/planetstack/core/models/network.py
index 1fb629f..0b3400a 100644
--- a/planetstack/core/models/network.py
+++ b/planetstack/core/models/network.py
@@ -95,6 +95,7 @@
slivers = models.ManyToManyField(Sliver, blank=True, related_name="networks", through="NetworkSliver")
topologyParameters = models.TextField(null=True, blank=True)
+ controllerUrl = models.CharField(null=True, blank=True, max_length=1024)
controllerParameters = models.TextField(null=True, blank=True)
# for observer/manager