From f20bd23e1b184593ef950ea269f0034a550c90f4 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 25 Oct 2012 10:24:59 -0400 Subject: [PATCH] fix allocation state names --- sfa/planetlab/plaggregate.py | 2 +- sfa/planetlab/pldriver.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 = [] -- 2.43.0