From: Scott Baker Date: Thu, 8 Aug 2013 01:58:10 +0000 (-0700) Subject: add translation field to network template X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=commitdiff_plain;h=87e5e09d5973e0c027d109560acec9d84e26b2b6 add translation field to network template --- diff --git a/planetstack/core/models/network.py b/planetstack/core/models/network.py index 44dee76..8f51fb8 100644 --- a/planetstack/core/models/network.py +++ b/planetstack/core/models/network.py @@ -11,11 +11,13 @@ 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") def __unicode__(self): return u'%s' % (self.name)