fix allocation state names
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 25 Oct 2012 14:24:59 +0000 (10:24 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 25 Oct 2012 14:24:59 +0000 (10:24 -0400)
sfa/planetlab/plaggregate.py
sfa/planetlab/pldriver.py

index 17abcb0..cbfeb76 100644 (file)
@@ -247,7 +247,7 @@ class PlAggregate:
             op_status =' geni_failed'
 
         if not allocation_status:
-            allocation_status = 'provisioned'
+            allocation_status = 'geni_provisioned'
 
         # required fields
         geni_sliver = {'geni_sliver_urn': rspec_node['sliver_id'],
index ab7846c..bb6edbb 100644 (file)
@@ -700,10 +700,10 @@ class PlDriver (Driver):
         # only used by plc and ple.
         slices.handle_peer(site, slice, persons, peer)
         
-        return aggregate.describe([xrn.get_urn()], version=rspec.version, allocation_status='allocated')
+        return aggregate.describe([xrn.get_urn()], version=rspec.version, allocation_status='geni_allocated')
 
     def provision(self, urns, options={}):
-        return self.describe(urns, None, options=options, allocation_status='provisioned')
+        return self.describe(urns, None, options=options, allocation_status='geni_provisioned')
 
     def delete(self, urns, options={}):
         names = []