From: Tony Mack Date: Thu, 25 Oct 2012 14:24:59 +0000 (-0400) Subject: fix allocation state names X-Git-Tag: sfa-3.0-0~92 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f20bd23e1b184593ef950ea269f0034a550c90f4;p=sfa.git fix allocation state names --- diff --git a/sfa/planetlab/plaggregate.py b/sfa/planetlab/plaggregate.py index 17abcb00..cbfeb760 100644 --- a/sfa/planetlab/plaggregate.py +++ b/sfa/planetlab/plaggregate.py @@ -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'], diff --git a/sfa/planetlab/pldriver.py b/sfa/planetlab/pldriver.py index ab7846c4..bb6edbba 100644 --- a/sfa/planetlab/pldriver.py +++ b/sfa/planetlab/pldriver.py @@ -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 = []