From: Scott Baker Date: Fri, 9 Aug 2013 18:40:28 +0000 (-0700) Subject: add translation, sharedNetworkName, sharedNetworkId X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=de6de12bd7751c41459a020c1b526a72ef16100c;p=plstackapi.git add translation, sharedNetworkName, sharedNetworkId --- diff --git a/planetstack/core/models/network.py b/planetstack/core/models/network.py index 3cb9f20..4ac0b7e 100644 --- a/planetstack/core/models/network.py +++ b/planetstack/core/models/network.py @@ -7,15 +7,19 @@ from django.contrib.contenttypes import generic # If true, then IP addresses will be allocated by the model. If false, then # we will assume the observer handles it. -NO_OBSERVER=True +NO_OBSERVER=False class NetworkTemplate(PlCoreBase): VISIBILITY_CHOICES = (('public', 'public'), ('private', 'private')) + TRANSLATION_CHOICES = (('none', 'none'), ('NAT', 'NAT')) name = models.CharField(max_length=32) description = models.CharField(max_length=1024, blank=True, null=True) guaranteedBandwidth = models.IntegerField(default=0) visibility = models.CharField(max_length=30, choices=VISIBILITY_CHOICES, default="private") + translation = models.CharField(max_length=30, choices=TRANSLATION_CHOICES, default="none") + sharedNetworkName = models.CharField(max_length=30, blank=True, null=True) + sharedNetworkId = models.CharField(null=True, blank=True, max_length=256, help_text="Quantum network") def __unicode__(self): return u'%s' % (self.name)