remove the 'name' field from the slice record before updateing. Cant allow user to...
authorTony Mack <tmack@cs.princeton.edu>
Tue, 1 Sep 2009 00:35:05 +0000 (00:35 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 1 Sep 2009 00:35:05 +0000 (00:35 +0000)
sfa/methods/update.py

index b4b0f60..05a3d39 100644 (file)
@@ -63,6 +63,8 @@ class update(Method):
         elif type == "slice":
             hrn=record.get_name()
             pl_record=self.api.geni_fields_to_pl_fields(type, hrn, record)
+            if 'name' in pl_reocrd:
+                pl_record.pop('name')
             self.api.plshell.UpdateSlice(self.api.plauth, pointer, pl_record)
 
         elif type == "user":