git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40aebdf
)
pl: set exclusive property in RSpec according to node type
author
Mohamed Larabi
<mohamed.larabi@inria.fr>
Wed, 29 May 2013 13:52:54 +0000
(15:52 +0200)
committer
Mohamed Larabi
<mohamed.larabi@inria.fr>
Wed, 29 May 2013 13:52:54 +0000
(15:52 +0200)
sfa/planetlab/plaggregate.py
patch
|
blob
|
history
diff --git
a/sfa/planetlab/plaggregate.py
b/sfa/planetlab/plaggregate.py
index
d85043e
..
fc4bb49
100644
(file)
--- 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