27b2c76aaf9074850dfb845ecac43c37e598affc
[tests.git] / system / config_resa.py
1 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
2 # Copyright (C) 2010 INRIA 
3 #
4 # a configuration module is expected:
5 # (*) to define a config method
6 # (*) that takes two arguments
7 #     (**) the current set of plc_specs as output by the preceding config modules
8 #     (**) TestMain options field
9 # (*) and that returns the new set of plc_specs
10
11 # this config is defined to run on top of another one 
12 # and just sets the nodes as 'reservable'
13
14 # use e.g. with
15 # run -c default -c resa
16
17 import config_default
18
19 def config (plc_specs, options):
20     for plc_spec in plc_specs:
21         for site in plc_spec['sites']:
22             for node in site['nodes']:
23                 node['node_fields']['node_type']='reservable'
24     return plc_specs