with this we can use the sfa update method to renew slices
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 3 Dec 2009 23:28:12 +0000 (23:28 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 3 Dec 2009 23:28:12 +0000 (23:28 +0000)
sfa/plc/api.py

index ed8883f..5612d89 100644 (file)
@@ -208,6 +208,8 @@ class GeniAPI(BaseAPI):
                pl_record["url"] = record["url"]
            if "description" in record:
                pl_record["description"] = record["description"]
+           if "expires" in record:
+               pl_record["expires"] = int(record["expires"])
 
         elif type == "node":
             if not "hostname" in pl_record: