X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fsenslab%2Fslabaggregate.py;h=f8ce7a33dadbf834c088ab2c1de9784e5ea602ac;hb=79a37c7df42d5029ffe1a829d052391f618981f1;hp=ca9c4960aab81c15150a1d18418ccd5728b3d7c6;hpb=b658eccb96b270056ac190f0ef386acb0382d40a;p=sfa.git diff --git a/sfa/senslab/slabaggregate.py b/sfa/senslab/slabaggregate.py index ca9c4960..f8ce7a33 100644 --- a/sfa/senslab/slabaggregate.py +++ b/sfa/senslab/slabaggregate.py @@ -190,7 +190,7 @@ class SlabAggregate: #node_tags = self.get_node_tags(tags_filter) #links = self.get_links(sites_dict, nodes_dict, interfaces) - + reserved_nodes=self.driver.GetReservedNodes() rspec_nodes = [] for node in nodes: # skip whitelisted nodes @@ -209,8 +209,11 @@ class SlabAggregate: # do not include boot state ( element) in the manifest rspec if not slice: rspec_node['boot_state'] = node['boot_state'] + if node['hostname'] in reserved_nodes: + rspec_node['boot_state'] = "Reserved" rspec_node['exclusive'] = 'True' rspec_node['hardware_types'] = [HardwareType({'name': 'slab-node'})] + # only doing this because protogeni rspec needs # to advertise available initscripts #rspec_node['pl_initscripts'] = None