From dcde302a76519e802c6a439d651c79216608e1f1 Mon Sep 17 00:00:00 2001 From: Mohamed Larabi Date: Wed, 29 May 2013 15:52:54 +0200 Subject: [PATCH] pl: set exclusive property in RSpec according to node type --- sfa/planetlab/plaggregate.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sfa/planetlab/plaggregate.py b/sfa/planetlab/plaggregate.py index d85043e8..fc4bb49b 100644 --- a/sfa/planetlab/plaggregate.py +++ b/sfa/planetlab/plaggregate.py @@ -203,7 +203,13 @@ class PlAggregate: rspec_node['available'] = 'true' else: rspec_node['available'] = 'false' - rspec_node['exclusive'] = 'false' + + #distinguish between Shared and Reservable nodes + if node['node_type'] == 'reservable': + rspec_node['exclusive'] = 'true' + else: + rspec_node['exclusive'] = 'false' + rspec_node['hardware_types'] = [HardwareType({'name': 'plab-pc'}), HardwareType({'name': 'pc'})] # only doing this because protogeni rspec needs -- 2.47.0