remove Slice.instantiation field
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 6 May 2013 21:06:37 +0000 (17:06 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 6 May 2013 21:06:37 +0000 (17:06 -0400)
plstackapi/core/admin.py
plstackapi/core/models/slice.py
plstackapi/core/serializers.py
plstackapi/importer/plclassic/slice_importer.py

index dfb4e0d..d0b83e7 100644 (file)
@@ -189,8 +189,8 @@ class KeyAdmin(OSModelAdmin):
         
 
 class SliceAdmin(OSModelAdmin):
-    fields = ['name', 'site', 'serviceClass', 'instantiation', 'description', 'slice_url']
-    list_display = ('name', 'site','serviceClass', 'slice_url', 'instantiation')
+    fields = ['name', 'site', 'serviceClass', 'description', 'slice_url']
+    list_display = ('name', 'site','serviceClass', 'slice_url')
     inlines = [SliverInline]
 
     def get_formsets(self, request, obj=None):
index d509cc0..7122167 100644 (file)
@@ -12,8 +12,6 @@ class Slice(PlCoreBase):
     tenant_id = models.CharField(max_length=200, help_text="Keystone tenant id")
     name = models.CharField(unique=True, 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()
     description=models.TextField(blank=True,help_text="High level description of the slice and expected activities", max_length=1024)
     slice_url = models.URLField(blank=True, max_length=512)
index a341508..ded1859 100644 (file)
@@ -60,7 +60,6 @@ class SliceSerializer(serializers.HyperlinkedModelSerializer):
                   'enabled',
                   'name',
                   'url',
-                  'instantiation',
                   'omf_friendly',
                   'description',
                   'slice_url',
index 4f57c3b..4717b3d 100644 (file)
@@ -33,7 +33,6 @@ class SliceImporter:
             if slice['name'] not in self.local_slices:
                 site = local_sites[remote_sites[slice['site_id']]['login_base']]
                 new_slice = Slice(name=slice['name'],
-                                   instantiation=slice['instantiation'],
                                    omf_friendly = False,
                                    description = slice['description'],
                                    slice_url = slice['url'],