X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plstackapi%2Fcore%2Fmodels.py;h=25fa4ddd9439224caa2a335a479e619e13d35448;hb=a3a40cfb71870165581beca678549ce076898b5a;hp=3eb0f208a1b318161e3340e7d54f639a68676832;hpb=a4ae7f22a1e05d3b35fb2450e820e3548b9a126d;p=plstackapi.git diff --git a/plstackapi/core/models.py b/plstackapi/core/models.py index 3eb0f20..25fa4dd 100644 --- a/plstackapi/core/models.py +++ b/plstackapi/core/models.py @@ -47,6 +47,7 @@ class Site(PlCoreBase): class Slice(PlCoreBase): tenant_id = models.CharField(max_length=200, help_text="Keystone tenant id") name = models.CharField(help_text="The Name of the Slice", max_length=80) + enabled = models.BooleanField(default=True, help_text="Status for this Slice") SLICE_CHOICES = (('plc', 'PLC'), ('delegated', 'Delegated'), ('controller','Controller'), ('none','None')) instantiation = models.CharField(help_text="The instantiation type of the slice", max_length=80, choices=SLICE_CHOICES) omf_friendly = models.BooleanField()